OxygenXML and JDL Security Manager
Posted: Sun Dec 01, 2024 3:55 pm
Hello,
beginning with JDK 17, Java SecurityManager is marked as deprecated (https://bugs.openjdk.org/browse/JDK-8264713).
This give the warning messages that were mentioned in other threads.
As of Java 18+, running SecurityManager related code is not longer working out of the box.
For OygenXML, the "independent distribution" (without bundled JRE) thus crashes on startup if used with these newer Java versions.
An exception of type UnsupportedOperationException is thrown.
As an workaround, the additional JVM parameter -Djava.security.manager=allow should be given.
It may be included in the start scripts (e.g oxygenDeveloper.sh)
Don't know whether it fixes the problem in the future, but for Oxygen 27 and OpenJDK 21 it still does.
Regards
beginning with JDK 17, Java SecurityManager is marked as deprecated (https://bugs.openjdk.org/browse/JDK-8264713).
This give the warning messages that were mentioned in other threads.
As of Java 18+, running SecurityManager related code is not longer working out of the box.
For OygenXML, the "independent distribution" (without bundled JRE) thus crashes on startup if used with these newer Java versions.
An exception of type UnsupportedOperationException is thrown.
As an workaround, the additional JVM parameter -Djava.security.manager=allow should be given.
It may be included in the start scripts (e.g oxygenDeveloper.sh)
Don't know whether it fixes the problem in the future, but for Oxygen 27 and OpenJDK 21 it still does.
Regards