Jump to content
  • Advertisement
Sign in to follow this  
MTT

[java] Problem Setting Up Java

This topic is 4317 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!