I am writing my first java program for a class I am taking and I am
copying it right from the book and getting an error. Can someone
tell me what is wrong?
Here is the code:
import java.io.*;
class P0
{
public static void main(String args[])
{
System.out.println("String");
}
}
when I compile it goes just fine. When I run the class I get the
following error.
C:\java\bin>java P0
Exception in thread "main" java.lang.NoClassDefFoundError: P0