Also note that if no classpath is specified, Java's default is to check the current directory. So unless you have an environment variable set for classpath (and it does not include a dot for the current directory), you shouldn't need to set classpath at all for this example.
Joined: Mar 20, 2008
Yeah, when I looked in my environment variables, I had c:\Programs\Java\jdk1.6.0\bin
I forgot the _05 part.
So from what you are saying, if the path was just set to "." (parenthesis not included) then the whole classpath thing is not needed. So I need to do two things: 1.) set CLASSPATH = "" (set it to nothing) and 2.) change path = .; in the environment variable (or is it .*
I think that's a little confused. You should not set your CLASSPATH to nothing, and you should not set PATH to include "." (the current directory).
PATH tells your system where to find executables like javac and java. With this set, you can type "javac" at the command line, and your system will make sense of it. In addition to whatever is already there, your PATH should include...
...because that's where the Java executables are.
CLASSPATH tells Java where to find user-specified Java classes. The default is to use the current directory (.), so normally you don't need to do anything. If you set CLASSPATH to nothing, then you will not get the default behavior.
So (after correcting your CLASS variable) you should be able to just change the directory and compile...