Menu

#452 Illegal AccessError in Graphical Toolkit with Java 9

PCML
closed
3
2021-08-11
2021-08-10
No

Having compiled an application based on th Graphical Toolkit (ui400.jar) with ethe Java 9 as the target platform, I started getting the following error in the Command Prompter (looks like Java 9 incompatibility problem):

Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: class com.ibm.as400.ui.framework.java.LookAndFeelManager (in unnamed module @0x6d3c0d4) cannot access class com.sun.java.swing.plaf.windows.WindowsLookAndFeel (in module java.desktop) because module java.desktop does not export com.sun.java.swing.plaf.windows to unnamed module @0x6d3c0d4
at com.ibm.as400.ui.framework.java.LookAndFeelManager.setLookAndFeel(LookAndFeelManager.java:77)
at com.ibm.as400.ui.framework.java.PanelManager.constructUI(PanelManager.java:3822)
at com.ibm.as400.ui.framework.java.PanelManager.<init>(PanelManager.java:891)
at com.ibm.as400.ui.framework.java.PanelManager.<init>(PanelManager.java:842)
at com.ibm.as400.ui.framework.java.PanelManager.<init>(PanelManager.java:820)
at com.ibm.as400.ui.util.ClButtonPanel.<init>(ClButtonPanel.java:101)
at com.ibm.as400.ui.util.ClCommandLineDialog.commonConstruct(ClCommandLineDialog.java:138)
at com.ibm.as400.ui.util.ClCommandLineDialog.<init>(ClCommandLineDialog.java:120)
at com.ibm.as400.ui.util.CommandPrompter.showDialog(CommandPrompter.java:510)
at istreamba.Menus.MRstristmodActionPerformed(Menus.java:3285)
...</init></init></init></init></init>

Lenny

Discussion

  • John Eberhard

    John Eberhard - 2021-08-11
    • status: open --> closed
     
  • John Eberhard

    John Eberhard - 2021-08-11

    The Graphical Toolkit (jui400.jar) is not part of the open source JTOpen. Only the binary jar file is included in the jtopen.zip file. You will need to contact IBM i service to get support for jui400.jar.

     

Log in to post a comment.

MongoDB Logo MongoDB