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


About Charlee Chitsuk

I've been working as a software developer since 1998. At the moment I focus on system integration including with SOA and Enterprise Security Solution.

Posted on June 25, 2010, in JAXB and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: