January 20, 201016 yr 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
January 20, 201016 yr 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 ♪♪
January 20, 201016 yr 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]
January 21, 201016 yr 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.
Create an account or sign in to comment