Code:
public class Foo {
public static void main (String[] args) {
System.out.println("Hello world!");
}
}
mac:~ howiieque$ javac /Users/howiieque/Desktop/Foo.java
mac:~ howiieque$ java Foo
Exception in thread "main" java.lang.NoClassDefFoundError: Foo
mac:~ howiieque$
I wonder what's wrong??
newbie for Java