java - SAP GUI Error: ... cannot access class sun.awt.AppContext - Ask Ubuntu
after installing sap gui:
java -jar platingui740_0-20012039.jar install
(which flawless) following error:
/opt/sapclients/sapgui/bin/guistart conn=/h/172.20.3.13/s/3200 exception in thread "main" java.lang.illegalaccesserror: class com.sap.platin.base.splash.splashwindow (in unnamed module @0x4f063c0a) cannot access class sun.awt.appcontext (in module java.desktop) because module java.desktop not export sun.awt unnamed module @0x4f063c0a @ com.sap.platin.base.splash.splashwindow.getownerframe(splashwindow.java:99) @ com.sap.platin.base.splash.splashwindow.splashimpl(splashwindow.java:206) @ com.sap.platin.base.splash.splashwindow.splash(splashwindow.java:176) @ com.sap.platin.gui.main(gui.java:70)
how fix this?
change java version.
in case default version oracle-java-9 java hotspot(tm) 64-bit server vm (build 9-ea+140, mixed mode)
i changed openjdk 8 openjdk 64-bit server vm (build 25.111-b14, mixed mode)
by using command sudo update-alternatives --config java
Comments
Post a Comment