|Generate JAXB Classes - cannot find XJCFacade [message #662010]
||Mon, 28 March 2011 21:04
| Michael Giroux
Registered: July 2009
Location: Phoenix, AZ
I'm attempting to generate JAXB classes from an XSD. When I right-click the schema and select the Generate->JAXB Classes, I get the following error on the console.|
Caused by: java.lang.ClassNotFoundException: com.sun.tools.xjc.XJCFacade
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
I've been digging through Eclipse docs for better part of a day now, and cannot find anything that suggests that I need to do anything special to Generate JAXB Classes.
Version: Helios Service Release 2 Java EE version.
Build id: 20110218-0911
EclipseLink SDK 2.2.0 (not sure if I need this or not)
Can someone point me to docs that explain where XJCFacade is and how to install it into eclipse?
|Re: Generate JAXB Classes - cannot find XJCFacade [message #1243829 is a reply to message #662010]
||Tue, 11 February 2014 13:57
Registered: January 2011
I recently migrated from one machine to another and updated from Kepler Release to Kepler SR1. I am unsure which of these steps made my Java Library change from JDK to JRE during this process... anyway, the hint in this thread is very helpful. As it took me quite some time to google it with a German error message (and it also seems it slightly changed because I only got one single line), I'll just add my (localized) error-message here, as I didn't find the reason for JAXB-generation failing which previously worked, until I got here. So may an early google hit help others, too. |
Fehler: Hauptklasse com.sun.tools.internal.xjc.XJCFacade konnte nicht gefunden oder geladen werden
Error: Main class com.sun.tools.internal.xjc.XJCFacade could not be found or loaded.
Changing the Java library from JRE to the JDK in the project settings worked fine. (after adding the JDK to the workspace in the Eclipse settings)
[Updated on: Tue, 11 February 2014 13:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01805 seconds