#16304 closed defect (fixed)
java 10 compatibility
| Reported by: | kendzi | Owned by: | kendzi |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin kendzi3d | Version: | |
| Keywords: | java10 java11 jaxb | Cc: |
Description (last modified by )
Looks like my plugin kendzi3d stopped working when I upgraded to openjdk 10. I get an error:
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
Class it is now moved to module java.xml.bind which needs to be included or added as deppendency.
I will fix that bug by including jar with jaxb, but I'm surprised to see that because I was sure you have some test for that.
So do you have an automated tests which checks for this kind of problems?
Attachments (0)
Change History (15)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Hi kendzi,
Please follow the discussions and commits here:
java --add-modules java.se.ee -jar josm.jar will work with Java 9/10 but not with 11+ as the Java EE modules have been removed from Java 11.
We have removed all of our JAXB (direct or indirect) dependencies. You can either do the same or ship the library with your plugin.
We have some basic plugin integration tests (we can see if a plugin uses an outdated JOSM API, and we try to load the plugin) but we cannot test all the plugins features.
comment:3 by , 8 years ago
| Component: | Plugin → Plugin kendzi3d |
|---|---|
| Keywords: | java10 java11 jaxb added |
| Owner: | changed from to |
comment:5 by , 8 years ago
Not for now. I cannot drop jaxb, so i will add lib's. Unfortunately maven plugins I'm using still are not ported to java 9. Additionally after adding libs there was some problems with versions, especially when app should be runnable in botch java 8 and beyond. So plan is to wait for plugin, later It will be fight with versions.
Not that I'm lazy but, Is there some road map when josm drops support for java 8?
comment:6 by , 8 years ago
There are no immediate plans to drop Java 8. Unlike previous versions, the fate of Java on desktop is not very clear. Oracle is dropping a ton of desktop APIs and tools (WebStart, JavaFX, etc.) without much notice. We first need to wait for Java 11 release to see where Java is going. Starting from 11, Oracle won't provide a JRE anymore! So we will have to see what replacement we can offer for Windows and Mac. Not an easy task. For Linux it is complicated as well, Debian plans to move to Java 11 but they have not enough manpower to update all packages...
comment:7 by , 8 years ago
What is the Maven plugin causing you trouble? I thought all had been updated long ago.
comment:8 by , 8 years ago
I'm generating schema using maven-jaxb2-plugin, looks they still fighting with java 9/10:
https://github.com/highsource/maven-jaxb2-plugin/issues/120
comment:9 by , 8 years ago
Wow ticket open 1 year ago this is crazy. I wasn't aware jaxb plugin was not an official plugin from Apache Maven team. They updated their plugins long ago. I hope it will be released soon and the author keeps updating it.
comment:11 by , 7 years ago
| Description: | modified (diff) |
|---|
comment:12 by , 7 years ago
| Status: | needinfo → new |
|---|
comment:13 by , 7 years ago
| Status: | new → needinfo |
|---|
See https://github.com/kendzi/kendzi3d/pull/85. Can you please merge it and close this ticket if fixed?
comment:14 by , 7 years ago
| Resolution: | → othersoftware |
|---|---|
| Status: | needinfo → closed |
let's continue the discussion on https://github.com/kendzi/kendzi3d/pull/85 if needed
comment:15 by , 7 years ago
| Resolution: | othersoftware → fixed |
|---|



Oki i found ticket #15128 so current approach is to run plugin by command:
java --add-modules java.se.ee -jar josm.jarright?On some stackoverflow post I found that proper solution is to add jar with missing class:
https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j/48136912
Why it was not used by josm?