Originally Posted by shmoove
If you are running from the command prompt then you can use the -cp or -classpath parameters in the command line to specify the classpath. Use "java -?" to find out all the options you have.
If I have no classpath at all everything works fine. But since I've installed Tomcat I need to have a classpath variable.
I can run my programs from anywhere on the disk using: java -cp "." MyClass
...and it works fine. But it's very bothersome.
How can i avoid using -cp ??
I was into java about 4 years ago, and never had a problem with this. What've changed?