Ubuntu – Installation of SAP GUI 740 on Ubuntu 14.04

javajdkopenjdk

I need your help! I have the following version of JRE installed on my system:

java version "1.7.0_75" OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1) 
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Here are my alternatives:

There are 2 choices for the alternative Java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status

* 0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
* 1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
* 2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode

When I run the following command to install the GUI:

java -jar PlatinGUI740_0-20012037.JAR

This is the output:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/sap/platin/micro/Microkernel : 
Unsupported major.minor version 52.0    
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)\
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

But it says here that the GUI works with Java 7. What am I missing?

Update:

After @chronos00 shed some light on this matter, I tried his solution. However, I was not able to install JDK via sudo apt-get install openjdk-8-jre but was able via this link. The installer now shows the GUI but I still cannot proceed with install. Installer now gives me this error:

Installation of SAP GUI for Java 7.40 Installation has not finished succesfully. Installation has failed.

The installation of the SAP GUI for Java has failed with fatal errors.
Please check the installation log file: "/root/sapgui.log"

Installation details.
Copy Resources
Installed resource : GuiStartS.jar
Installed resource : JNetBeanS.jar
Skipped native optional resource : Linux-gmux.jar
Skipped native optional resource : Linux-graphics.jar
Exception details.


Internal exception: java.lang.NullPointerException
java.lang.NullPointerException at:
com.sap.platin.micro.installer.InstallationController.loadResource(InstallationController.java:1133)at:
com.sap.platin.micro.installer.InstallationController.downloadResources(InstallationController.java:1001)at:
com.sap.platin.micro.installer.InstallationController.addInstallationImpl(InstallationController.java:280)at:
com.sap.platin.micro.installer.InstallationController.addInstallation(InstallationController.java:132)at:
com.sap.platin.micro.Microkernel.install(Microkernel.java:274)at:
com.sap.platin.micro.Microkernel.main(Microkernel.java:798)

Best Answer

On Linux Mint 18 of the Ubuntu family with openjdk version "1.8.0_91" installed, I installed SAP GUI for Java 7.40 rev 7. I ran into the same error when I tried to start the SAP gui. I simply looked for javafx in the software center and installed Javafx/openjfx 8 - rich client application platform for java. Now it runs like a charm.

Related Question