Menu

#49 BSF4ooRexx on macOS Catalina failing launch of ooRexxTry

Next Release
closed-invalid
nobody
None
5
2021-11-13
2020-04-26
No

After a successful installation of BSF4ooRexx, when starting the oorexx.app application to launch the BSF4ooRexxMenu The following warning below appears:

java -cp "/Applications/ooRexx.app/Contents/MacOS" BSF4ooRexxMenu & exit;
po@POs-16Core-Mac-Pro ~ % java -cp "/Applications/ooRexx.app/Contents/MacOS" BSF4ooRexxMenu & exit;
[1] 12506
zsh: you have running jobs.
po@POs-16Core-Mac-Pro ~ % WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by BSF4ooRexxMenu (file:/Applications/ooRexx.app/Contents/MacOS/) to method com.apple.eawt.Application.getApplication()
WARNING: Please consider reporting this to the maintainers of BSF4ooRexxMenu
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

BSF4ooRexxMenu nevertheless launches and everything seems to work as intended. It is possible to uninstall from Installation -> uninstall menu item BUT When trying to use ooRexxTry from the Open Obejcr Rexx menu item this error message occurs:

Last login: Sun Apr 26 13:27:33 on ttys002
po@POs-16Core-Mac-Pro ~ % rexxj.sh /Applications/ooRexx.app/Contents/utilities/ooRexxTry.rxj && exit
Error: Could not find or load main class org.rexxla.bsf.RexxDispatcher
Caused by: java.lang.ClassNotFoundException: org.rexxla.bsf.RexxDispatcher
po@POs-16Core-Mac-Pro ~ %

Someone needs to look into this.

NOTE: ooRexx itself works as it should from a terminal session and the test suite for ooRexx passes all tests that the standalone ooRexx passes.

Discussion

  • Rony G. Flatscher

    This warning comes from the modular Java introduced with Java 9. Eventually this warning will be turned into an error. It stems from using java.lang.reflect. BSF4ooRexx has a second reflection mechanism introduced that uses java.lang.invoke which is needed starting with modular Java 9. As java.lang.invoke is fully implemented in Java 8 this new reflection mechanism will be used for that version already. Java's warning is misleading in this case and when turned into an error it will not affect BSF4ooRexx.

     
  • Rony G. Flatscher

    • status: open --> closed-invalid
     

Log in to post a comment.

Auth0 Logo