For java 9 most likely all you have to do is add --add-module java.xml.bind when running the program if you use xml (or most json) parsing libraries. Otherwise you dont have to do anything.
For java 10+ you have to get replacement libraries for the crap (including xml binding) that has been removed from the jdk. Most likely you don't need any of these libraries, except maybe xml binding.
Well, you have to add a lot of modules if you're using JavaFX, like, 250 characters worth of modules... other than that, upgrading to Java 11 is mostly okay depending on what dependencies your app uses.
I gotta admit, the add-module shit isn't quite as nice as just java -jar app.jar.
If the jar is built with Java 9+ support in mind, yeah. If the jar is no longer maintained and you are stuck with a version that doesn't have module support built in? Well, then you may need hundreds of characters for adding modules instead of just java -jar app.jar.
29
u/Life_is_a_meme Mar 19 '19
I don't even know how to migrate to Java 9 and they're already on Java 12...