asterics / AsTeRICS

The Assistive Technology Rapid Integration & Construction Set
http://www.asterics.eu
Other
54 stars 27 forks source link

Fixes for AsTeRICS running with Java 11 #323

Open deinhofer opened 4 years ago

deinhofer commented 4 years ago

This PR provides a runnable version of Asterics with Java 11 (tested with Linux and Win10, Oracle JDK 11).

Here are some useful infos about important changes between Java 8 and Java 11

Conclusion

Due to the modularization of Java since Java 9, and the removal of some APIs and other changes, there had to be done the following fixes:

Upgrade of Eclipse Equinox OSGI engine to version 3.14

The upgrade was necessary due to a missing constraint java.net.ssl error when starting the grizzly-*-2.3.23.jar service.

The new version was modularized even more, e.g. the osgi console is not included by default. We could later think to remove it again, by removing ../bin/ARE/org.eclipse.equinox.console_1.3.300.v20190516-1504.jar and its dependencies

As of JDK 11 many APIs (e.g. javax.xml, javax.activation, javax.servlet,...) were removed from the core, that's why we need to add them manually. Some of them are added in another commit for the WebService service.

The following links were very helpful in finding the solutions and appropriate replacement jars:

Manually added JAXB dependency for webservice service as Java 11 does not ship it any more

Links helping to find the solution:

Fixed crash of rxtx library (cimcommunication) with Java 11 on Windows