[java] Problem Setting Up Java

Started by
2 comments, last by straydoginc 17 years, 6 months ago
So I downloaded and installed java SDK, and now I am trying to make a program run but having some problems. I set the Path environment variable to, and got my program to compile in the comand prompt using javac. But when I try to run it I get the error: Exception in thread "main" java.lang.noClassDefFoundError: ShellApplication And I looked into it and it seems I need to set my CLASSPATH variable. So I changed it from C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip to D:\Program Files\Java\lib\ext\QTJava.zip and I still got the same error. So I am wondering what I should be setting it to to make my program run. All the java files are in D:\Program Files\Java and my source file and class file is in D:\Work any ideas?
--------------------------http://www.gamedev.net/community/forums/icons/icon51.gif ... Hammer time
Advertisement
Sounds like you need to setup a Path environment variable to the actual sdk. Something like this:

";C:\Program Files\Java\jdk1.5.0_06\"

Should work.
That wasn't it, I deleted that folder \jdk1.5.0_07\ and moved it all into the \java\ folder.

I looked around and saw somthing about putting .; in there, so I changed CLASSPATH to

.;D:\Program Files\Java\lib
and it seems to be working
--------------------------http://www.gamedev.net/community/forums/icons/icon51.gif ... Hammer time
Rock on. Glad it worked out for you. I just went through the same fun :)

This topic is closed to new replies.

Advertisement