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 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: 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


4. Please remove this value from your project.

I would like to thank to a very smart guy here

%d bloggers like this: