Installation of SAP GUI 740 on Ubuntu 14.04

18,674

Solution 1

I see the same behavior as you do with OpenJDK-7.

I solved it by installing version 8 of OpenJDK (sudo apt-get install openjdk-8-jre), and then selecting it using update-alternatives --config java

In my case, the output of update-alternatives --config java now looks like the following:

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-7-openjdk-amd64/jre/bin/java   1071      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1069      manual mode

Installation and execution followed properly after that.

Hope this helps!

PS: Please note that I am using the following version of SAP-PlatinGUI PlatinGUI740_0-20012039.JAR. I don't know if there is any difference with the one you were trying, but I also had the same problem with OpenJDK7.

Solution 2

I have found similar error in Ubuntu 20.04. I have fixed with these commands:

sudo apt install -y openjfx
sudo cp /usr/share/openjfx/lib/javafx.properties /usr/lib/jvm/java-11-openjdk-amd64/lib/javafx.properties

Solution 3

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.

Share:
18,674

Related videos on Youtube

erik
Author by

erik

Updated on September 18, 2022

Comments

  • erik
    erik over 1 year

    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)
    
    • chronos00
      chronos00 over 9 years
      What is the command you used to get the first and second output?
  • erik
    erik about 9 years
    Thanks @chronos00. However, I cannot install java via the command sudo apt-get install openjdk-8-jre. Do you have repos that have to be added to my sources? Anyway, I tried using this link to install the JDK. The installation GUI loaded but I still ended up in an error: Internal exception: java.lang.NullPointerException java.lang.NullPointerException `
  • chronos00
    chronos00 about 9 years
    I am running Ubuntu 14.10 and OpenJDK 8 vas already in the repos. It seems that this is not the case with Ubuntu 14.04. You can read more about it here.
  • chronos00
    chronos00 about 9 years
    On another comment, I must unfortunately add to this that even though the installer completed successfully with OpenJDK 8, and I was able to launch SAP GUI, the connection broke after I successfully logged in. I had to revert to SAP GUI 7.3 rev3 with OpenJDK7. The link in my previous comment had instructions to install Oracle's Java in Ubuntu 14.04. You might as well try that too.
  • erik
    erik about 9 years
    Also did the same thing. Used GUI 7.3 rev3 instead. Works fine with JDK8 so I just left Java as is. Anyway, this would do for now. Unless some unfortunate bloke goes through the same thing then they may wake this ticket up! LOL Thank you @chronos00!