No_99_Melee Posted January 20, 2010 Share Posted January 20, 2010 Trying out textpad with hello world. I have the program compiled and everything, but when it runs I get this error. Help me fix it :P Link to comment Share on other sites More sharing options...
dsavi Posted January 20, 2010 Share Posted January 20, 2010 How did you compile it? How did you try to run it? Link to comment Share on other sites More sharing options...
sees_all1 Posted January 20, 2010 Share Posted January 20, 2010 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 thoughtHave some respect for someone more forgetful than yourself ♪♪♪♪ And I'm not doneAnd I won't be till my head falls off ♪♪ Link to comment Share on other sites More sharing options...
RSBDavid Posted January 20, 2010 Share Posted January 20, 2010 I typed the code you used and compiled using the Java application tool and it worked just fine. Do you have the latest JDK and your classpath set up? [software Engineer] - [Ability Bar Suggestion] - [Gaming Enthusiast] Link to comment Share on other sites More sharing options...
Stragomagus Posted January 21, 2010 Share Posted January 21, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now