Category Archives: JAXB
The Java Project with JAXB 2.2 via NetBeans 6.8
I’ve found some exception during testing the Java project with JAXB 2.2 via NetBeans 6.8 as
java.lang.NoClassDefFoundError: 6/8\ide12\modules\ext\jaxb\api
Caused by: java.lang.ClassNotFoundException: 6.8\ide12\modules\ext\jaxb\api
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: 6.8\ide12\modules\ext\jaxb\api. Program will exit.
Exception in thread “main” Java Result: 1
I had searched via Google and found the solution as following: -
1. Please right click at your Java project and choose “Properties”. The system will show you a “Project Properties” window.
2. Within that window, “Categories” panel, Choose the node named “Run”.
3. You will see the “VM Options:” at the right area, which mentions as
-Djava.endorsed.dirs=${jaxbwiz.endorsed.dirs}
4. Please remove this value from your project.
I would like to thank to a very smart guy here


