Issues with JDK 1.6.0_01

I have been working on a program for a while and quit. I recently picked it back up and I noticed some problems with the new version of Java. I have 1.5.x on my laptop and everything compiles and runs fine. When I take the files to my desktop, which I have recently installed 1.6 on, none of the java files will compile and the class files won't run. When I compile with "javac *.java" it acts like it is compiling and returns no errors. If I compile each class individually it gives errors for each class within that file that has not been compiled. And when I run "java JWord" which is where my main method is, I get a no class definition found exception. As far as I can tell my environment variables are right. Anyone know what's going on?

[752 byte] By [godM0d3a] at [2007-11-27 2:40:39]
# 1

Try explicitly setting the claspath when you use the Java tools java and javac. So if you are in the directory containing JWord.class and the other class files it would be:javac -cp . *.java

java -cp . JWord(The dot meaning "current directory.")

If you have problems you should say what the directory layout looks like, what commands you use (and from which directory you issue them) and the exact error messages. (Copy, paste and post the error messages to avoid typos.) If any of your classes have a "package" statement at the top, mention that as well.

pbrockway2a at 2007-7-12 3:03:43 > top of Java-index,Java Essentials,Java Programming...
# 2

I've thought about it, and the problem seems to be that the class files are not being recognized. I already had the files compiled and running on the laptop, so even if the compiler wasn't doing anything, the complete class files were already in the directory.

Here is some information regarding the problem:

Classpath = .C:\Program Files\Java\jdk1.6.0_01\lib\tools.jar

Path = ... ;C:\Program Files\Java\jdk1.6.0_01\bin; ...

I used the windows cmdhere powertoy to open the command line in my jumpdrive.

All the files necessary are in the same directory, excluding the swing, awt, and maybe java.util packages and sub-packages

godM0d3a at 2007-7-12 3:03:43 > top of Java-index,Java Essentials,Java Programming...
# 3
> Classpath = .C:\Program Files\Java\jdk1.6.0_01\lib\tools.jarThat's not a valid classpath; you probably meant it to be CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_01\lib\tools.jar But I recommend getting rid of the CLASSPATH environment variable completely.
uncle_alicea at 2007-7-12 3:03:43 > top of Java-index,Java Essentials,Java Programming...