Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with a java error

Featured Replies

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

 

91680954.png

1288581197250-1.jpg

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 ♪♪

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?

wii_wheaton.png

[software Engineer] -

[Ability Bar Suggestion] - [Gaming Enthusiast]

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.