Getting an ERROR when trying to compile the Correct Code!?
I am very new to the Java. I am getting fed up when trying to run the file called Hello.java. The text is exact as I described below :
public class Hello
public static void main(String args)
System.out.println("Hello, World!" );
System.out.println("It Worked!" );
According to me this is the correct code. Since I am getting the error in the basic program, I am certainly feeling embarrassed. The error says "java.lang.NoClassDefFoundError", which I am not able to understand. Have I made any mistake in my code.?? Intelligent Guys out there Please help me..
AMD Sempron 2800+ @ 2Ghz
120Gb Seagate barracuda 7200Rpm Ultra-ATA 100
Elixir 512mb DDR Pc3200 (Soon 1Gb)
Club 3D Radeon 9600 256Mb
Lite-On Cd & Dvd writer combo
Windows Xp Pro Sp2
Advent Wireless Mouse & Keyboard.