There are worse crimes than burning books. One of them is not reading them. Ray Bradbury
There are worse crimes than burning books. One of them is not reading them. Ray Bradbury
Sometimes the only way things ever got fixed is because people became uncomfortable.
Robert D. Smith wrote:
Tyson: The whole point of the exercise is to have them in separate folders. That is the default behavior of eclipse, so it should be doable by hand, which is what I am trying to learn.
Tim Holloway wrote:
When executing a java application, you must provide a classpath. Java makes no assumptions, not even the current directory. So "java -classpath . org.coderanch.myapp.DSTerm" would use the current directory as the class root to execute the main method in the DSTerm class. Or, if you stick to my previous directory structure, that's "java -d classes org.coderanch.myapp.DSTerm". The fully-qualified classname is required, not the simple classname or the filesystem name of the class.
Tyson Lindner wrote:
Tim Holloway wrote:
When executing a java application, you must provide a classpath. Java makes no assumptions, not even the current directory. So "java -classpath . org.coderanch.myapp.DSTerm" would use the current directory as the class root to execute the main method in the DSTerm class. Or, if you stick to my previous directory structure, that's "java -d classes org.coderanch.myapp.DSTerm". The fully-qualified classname is required, not the simple classname or the filesystem name of the class.
Not sure what you mean here, java does assume the current directory. If a HelloWorld program is in the current directory you can run it with just:
java HelloWorld
Sometimes the only way things ever got fixed is because people became uncomfortable.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
|