ini masalah muncul waktu class main gabisa diakses, masalah ada pada java.lang
Exception in thread "main" java.lang NoClassDefFoundError: ProgramEdward
Caused by: java.lang.ClassNotFoundException: ProgramEdward
at java.net.URLClassLoader$1.run
at java.security.AccesdController.doPrivileged
at java.net.URLClassLoader.findClass
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: ProgramEdward. Program will exit.
caranya pastikan udah di set CLASSPATH nya sesuai dengan JAVA_HOME, caranya:
tekan windows + pause -> Advance -> Environment Variables -> cek di system variables ada gak CLASSPATH, kalo belum ada tambahin aja -> new -> variable name = CLASSPATH,variable value = C:\Program Files\Java\jre6\lib (ini disesuaikan dengan isi variable value di JAVA_HOME)
terus coba lagi di run filenya, jangan lupa bissmillah lalu subhanallah walhamdulillah. insyaAllah jalan...
No comments:
Post a Comment