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.

java help

Featured Replies

Hi all,

 

Recetnly have been trying to learn Java and i started on a tutorial on sun. How ever i have a common problem and ive tried their solution and it doesnt work.

 

 

 

I compile my application into the .class then when i type in:

 

C:\java2\bin>java HelloWorldApp

 

 

 

i get the no class defination file.

 

 

 

I set the directory to the right place and it still says that.

 

 

 

Also my class file for somereason has become a java file that when i try to alter it into open with standard binary it says corrupt file. Any ideas on what i should do?

 

 

 

thanks

First of all, it's probably best to add javac[Caution: Executable File] (The compiler) to your environmental variables.

 

 

 

Second of all, your missing the extension. It outputs AppName.class

 

You have to run it using

 


java AppName.class

  • Author

Typed in this:

 

C:\java2\bin>java HelloWorldApp.class

 

this came up: Exception in thread "Main" java.lang.NoClassDefFoundError: HelloWorldApp/class

 

 

 

whats with that?

i am taking a java class in high school so i can help you in about a school year lol

  • Author

sorted the problem, java didnt recongnise the class directory, here is what i had to type

 

 

 

C:\java2\bin> java -classpath . HelloWorldApp

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.