Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Implementation of JAXB » ClassNotFoundException when generating classes with JAXB
ClassNotFoundException when generating classes with JAXB [message #1822825] Sat, 14 March 2020 13:05
Steven Melis is currently offline Steven MelisFriend
Messages: 1
Registered: March 2020
Junior Member
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.

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/istack/tools/MaskingClassLoader
at com.sun.tools.xjc.XJCFacade.main(XJCFacade.java:74)
Caused by: java.lang.ClassNotFoundException: com.sun.istack.tools.MaskingClassLoader
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 1 more

I've been digging through Eclipse docs for a few days now, and cannot find anything that suggests that I need to do anything special to Generate JAXB Classes.

Config:
Eclipse IDE for Enterprise Java Developers.
Version: 2019-12 (4.14.0)
Build id: 20191212-1212

Can anyone help me solve this error?

Thanks
Steven
Previous Topic:Can't get it to run in OSGI/Java11
Goto Forum:
  


Current Time: Sun Jun 20 04:35:30 GMT 2021

Powered by FUDForum. Page generated in 0.02721 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top