Sign in to follow this  

[java] Problem Setting Up Java

This topic is 4100 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
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

This topic is 4100 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this