|
![]() |
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
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
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
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|