C
cat_dog_ass
I've created abc.java file in c:\sun\appserver\jdk\bin.
I've made this my current directory.
I compile by typing at the prompt javac abc.java.
It compiles.
Next i type java abc
I get this error: EXception in thread "main"
java.lang.NoClassDefFoundError: ABC/class
Why does this happen?
My source code is:
class ABC
{
public static void main(String args[])
{
System.out.println("This is the output");
}
}
I've made this my current directory.
I compile by typing at the prompt javac abc.java.
It compiles.
Next i type java abc
I get this error: EXception in thread "main"
java.lang.NoClassDefFoundError: ABC/class
Why does this happen?
My source code is:
class ABC
{
public static void main(String args[])
{
System.out.println("This is the output");
}
}