Fixes for AsTeRICS running with Java 11 #323
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
da9be4e
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