diff --git a/ols.distribution/src/main/resources/run.bat b/ols.distribution/src/main/resources/run.bat index 1886a185..8dc65032 100644 --- a/ols.distribution/src/main/resources/run.bat +++ b/ols.distribution/src/main/resources/run.bat @@ -31,6 +31,7 @@ rem give the client roughly 1gigabyte of memory set MEMSETTINGS=-Xmx1024m rem set SYSPROPS=-Djna.nosys=true +set JDK_JAVA_OPTIONS=--add-opens java.desktop/javax.swing.plaf.basic=ALL-UNNAMED rem For now, use the "console enabled" java for Windows... java %PLATFORMOPTS% %MEMSETTINGS% %SYSPROPS% -cp "%CLASSPATH%" nl.lxtreme.ols.runner.Runner -pluginDir="%PLUGINDIR%" %* diff --git a/pom.xml b/pom.xml index d9a3484e..2d0b1e33 100644 --- a/pom.xml +++ b/pom.xml @@ -177,7 +177,11 @@ 2.21.0 true - once + once + + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.desktop/java.awt=ALL-UNNAMED +