Thats actualy a very simple one:
Code:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
And you'll compile it with
Which produces the filename.class file, then you can run it with the
If this produces errors like
Quote:
|
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
|
Try executing it with the CLASSPATH argument ie
If that produces errors, please show them as they appear.