java - Could Not Find the Main Class: HelloWorld. Program will Exit -


possible duplicate:
.jar file keeps giving me “ not find main class”. program exit

trying run basic "hello world" program. have followed step step tutorials , same error message each time:

java.lang.noclassdeffounderror: helloworld caused by: java.lang.classnotfoundexception: helloworld @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) exception in thread "main"  

here program:

public class helloworld {     public static void main(string[] args) {         system.out.println("hello world");     } } 

has had same issue , know how resolve it?

is tutorial following: http://docs.oracle.com/javase/tutorial/getstarted/cupojava/win32.html ?

if not, try 1 , see if same result.

also, try run application follows:

c:\java.exe yourjavaprogram.main

or can google error , find solution faster think :)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -