I have a Java project, which runs fine in Eclipse. Right now, I need to run it using command line, like java classpath. How do I setup the classpath based on the stored ones using in Eclipse?
I have a Java project, which runs fine in Eclipse. Right now, I need
Share
Simply navigate to the directory that the class file exists in and use
java -classpath . myClassEdit: You can replace the
.with any classpath. For example, to find your classpath you can useecho %CLASSPATH%Edit: Looks like there’s quite a bit of information that might help you here.