so i've been teaching myself java and at work over the past few weeks have been playing with some code on the pc i work on. i downloaded the jdk and everything works as expected.
so i finally had free time at home (weird that i have the time at work and not home...women) so i wanted to play some with the code i've been working on and learning with. so just to make sure everything is working i type:
Code:
public class Hello
{
public static void main( String[] args )
{
System.out.println("look at me...");
}
}
...into vi and then compile it with "%javac Hello.java" and it compiles properly and then i go to run it with "%java Hello.class" and boom, i get this error:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: Hello/class
anyone know what this means? it's just a simple console app with no necessary libraries that i have to import...what gives? i recreated the file in project builder and figured it would attach any required files but i get the same error in the run dialog.
any insight would be appreciated...
thanks
amit