[java] Problem Setting Up Java
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?
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.
";C:\Program Files\Java\jdk1.5.0_06\"
Should work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement