I'm a beginner in JAVA and I'm facing a problem in executing a sample program.Let me explain it step by step:
1. The following program was written thru a notepad and then saved as Sample.java:
public static void main(String args)
2. The above program is then compiled by rhe following command:
Successful compilation: a .CLASS file named as Sample.class was generated.
3.The following command was implemented for execution:
An error message appeared:
Exception in thread 'main':java.lang.NoClassDef Found.Error:Sample