Jump to content

Need help with a java error


No_99_Melee

Recommended Posts

Make sure your PATH variable is set correctly (I assume it is if you could get javac to run correctly). Also make sure you're in the correct directory when you try to run it.

 

One thing that stumped me for a couple of days was when I was trying to get code to run on a linux box, to get MyClass.java to run, I had to type "java ./MyClass.class" instead of "java MyClass.class", you may have a similar situation.

 

 

Also, I would recommend using Netbeans or Eclipse (unless you don't want to program in java ever again). JCreator is also nice if you're not into project based code, and want to hammer out a class real fast.

 

 

Hope this helps.

99 dungeoneering achieved, thanks to everyone that celebrated with me!

 

♪♪ Don't interrupt me as I struggle to complete this thought
Have some respect for someone more forgetful than yourself ♪♪

♪♪ And I'm not done
And I won't be till my head falls off ♪♪

Link to comment
Share on other sites

Yeah, it seems to be a classpath problem. Did you happen to install textpad first and then the JDK, because if you did textpad doesn't detect it automatically, but if you didn't then disregard this and use this to set it.

 

https://cs.senecac.on.ca/~bpj444/pages/TextPad_config.html

Quote - Revenge is such a nasty thing that only breeds more vengeful souls, but in some situations revenge does not even need to be sought out, but only bided.

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.