How to copy my Java Eclipse project to desktop, and then run with the command line? -
i have built java program using eclipse. teacher wants separate java files in 1 folder, , teacher run program through command line. i've tried copying java files on desktop , running through command line, errors.
my program has 2 packages in it. know how fix this? without using plugins or something, teacher not have them.
edit: managed fix it, because of classpath had wrong directory
just export project in runnable jar file, go in cmd , execute: java -jar .jar
Comments
Post a Comment