Open lightreign opened 3 years ago
I moved the issue to the repo with the CKEditor 4 builder.
Could you check if the builder works with older version of Java (8 or 11)? Probably it would be the easiest workaround for now.
Thanks @Comandeer, I ran this in Java 11 OpenJDK and got the following warning:
Generating plugins sprite image
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mozilla.javascript.MemberBox (file:/opt/....../ckbuilder.jar) to method sun.java2d.SunGraphics2D.drawImage(java.awt.Image,int,int,java.awt.image.ImageObserver)
WARNING: Please consider reporting this to the maintainers of org.mozilla.javascript.MemberBox
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
No stack trace, exit code 0 :)
Like #27, this error with Java 17 need to be fixed by rihno: https://github.com/mozilla/rhino/issues/462 hopefully in their next version v1.7.14 as adding --add-exports java.desktop/sun.java2d=ALL-UNNAMED
to jvm arguments seem not work in java 17 for me.
I successfully recompiled CKeditor4 with Open JDK 17!
You need to recompile CKBuilder.jar by upgrading mozilla rhino with the latest version v1.7.14
You need to add the JVM argument --add-exports java.desktop/sun.java2d=ALL-UNNAMED
to your command line
We came across one issue of Riho which is used in elixir repertoire server. We got below error and laber/reports not getting printed properly. ERROR, JavaScript - JavaScript eval: Error evaluating script: java.lang.IllegalAccessException: class org.mozilla.javascript.MemberBox cannot access class sun.java2d.SunGraphics2D (in module java.desktop) because module java.desktop does not export sun.java2d to unnamed module @483f6d77
We resolved above issue by passing below argument while starting Repetior Server using java 17. java --add-opens java.desktop/sun.java2d=ALL-UNNAMED
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
Build script executes correctly.
NOTE: If I add
--add-exports java.desktop/sun.java2d=ALL-UNNAMED
argument to java runtime cmd this error does not occur, fixes it?Actual result
Java Exception thrown:
Other details