安装 SAP GUI 后:
java -jar PlatinGUI740_0-20012039.JAR install
(完美无缺)我收到以下错误:
/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 does not export sun.awt to unnamed module @0x4f063c0a
at com.sap.platin.base.splash.SplashWindow.getOwnerFrame(SplashWindow.java:99)
at com.sap.platin.base.splash.SplashWindow.splashImpl(SplashWindow.java:206)
at com.sap.platin.base.splash.SplashWindow.splash(SplashWindow.java:176)
at com.sap.platin.Gui.main(Gui.java:70)
如何解决这个问题?
答案1
更改 Java 版本。
就我而言,默认版本是 Oracle-Java-9Java HotSpot(TM) 64-Bit Server VM (build 9-ea+140, mixed mode)
我将其更改为 OpenJDK 8OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
使用命令sudo update-alternatives --config java