The version is running but on Windows Serial over Bluetooth devices are not supported any more (e.g. HidActuator, or LipMouse with Bluetoothdevice?)
There might be some other uncovered easter eggs due to the removal of APIs or the restriction of access to com.sun or sun.misc. But the main models worked so far.
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:
Unfortunately, I could not apply the patch (NeuronRobotics/nrjavaserial@a190730) with get_long_var to the asterics-specific rxtx-version (https://github.com/asterics/AsTeRICS/tree/master/ARE/RXTX) for windows because that version does not have such a function but has other fixes which provide support for Serial devices over Bluetooth which is used e.g. for the HidActuator device.
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