Alright, so I was making a simple Java class that would simply print out "Hello!". Here is the code:
public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello!");
}
}
I compiled the class through the command prompt and then, when I wanted to run it, it gave me a NoClassDefFoundError suggesting that there is a problem with the classpath. That is really stupid since it is a one-class program. I tried many things but nothing seems to fix the problem.
How can I fix this?