Trying to write my first java program.
public class first
{
public static void main(String[] args)
{
System.out.println("hi");
}
}
I'm using Sun's Java2 SDK v1.4 to try to compile the program.
it compiles ok using the line: javac e
java\first.java
but when I try to run it with: java e
java\first
i get the following error:
exception in thread main java.lang.noclassdeffounderror e
java\first
searched on google to no avail... can someone point me in the right direction?
public class first
{
public static void main(String[] args)
{
System.out.println("hi");
}
}
I'm using Sun's Java2 SDK v1.4 to try to compile the program.
it compiles ok using the line: javac e
java\first.javabut when I try to run it with: java e
java\firsti get the following error:
exception in thread main java.lang.noclassdeffounderror e
java\firstsearched on google to no avail... can someone point me in the right direction?