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

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: