Cannot launch Java code from separate directory...

I am trying to access my Java class, stored in /home/tmahoney/Java directory, from the directory /home/tmahoney.  It can't find the class.  The program only launches when I'm working in the same directory as its class file.  I've tried setting the CLASSPATH variable, but to no effect.

I am using Ubuntu 14.4 with Linux.  How do I launch a Java class file stored in one directory from any directory?  Thanks....

Read More »

By: coderanchbeginnerjava - Thursday, 8 November

Related Posts