Eclipse on Java 13 vs Annotations [message #1818132] |
Fri, 06 December 2019 17:10  |
Eclipse User |
|
|
|
We are trying to switch all our work to be done on Java 13.
I've run into a problem while running Eclipse on Java 13.
We use the Velocity Annotation processor to generate code.
When Eclipse runs the plugin, it is throwing a:
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
...
at org.eclipse.jdt.apt.core.internal.ClassServiceFactory.newInstance(ClassServiceFactory.java:30)
at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.discoverNextProcessor(IdeAnnotationProcessorManager.java:96)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:119)
at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:171)
at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:138)
at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:934)
Since the java 13 runtime no longer includes the JAXB classes, it appears that Eclipse will need to be updated to include the relevant .jar.
The .jar is already in our Plugin project, but it appears that Eclipse is referencing it outside of our project.
Any ideas for a workaround? I haven't seen a good way to add the jaxb-api-2.3.1.jar file to the eclipse classpath.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.33544 seconds