Problem to compile sample java code in NetBeans's Avatar, Join Date: Sep 2011
Newbie Member
I am new bie in java. learning the concepts theoretically. in the mean time i have downloaded sample java project source code in netbeans. But tried to compile my self but not succeed.

can you please tell me the way how can i do it.

Here is the code

named student_record_information

its showing errors like this

java.lang.NoClassDefFoundError: javaapplication1/Main
Caused by: java.lang.ClassNotFoundException: javaapplication1.Main
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(
Could not find the main class: javaapplication1.Main.  Program will exit.
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
Attached Files
File Type: zip (142.1 KB, 7 views)
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
the error says that the program calls to a class Main that is not available or the compiler cannot find it