Ok, I am trying to learn some java and for some reason whenever I try to run java on even the simplest of files I get an error as follows:
Code: Select all
bash-2.05b$ java Hello.class
Exception in thread "main" java.lang.NoClassDefFoundError: Hello/class
The Program is simple and is this (I included javax.servlet only to make sure it was reading my classpath right)
Code: Select all
import java.util.*;
import javax.servlet.*;
public class Hello {
public static void main(String[] args) {
System.out.println("Test Output");
}
}
I am really new to the java world so I have no clue how o go about fixing this, if anyone has any ideas I'd appreciate it
So many questions so little time....