Done New linux install - which java works with client best

Discussion in 'Galactic Science' started by Meli0, Aug 25, 2016.

  1. Meli0

    Meli0 Well-Known Member

    Messages:
    20
    Likes Received:
    6
    Local Time:
    11:03 AM
    I have options to install OpenJDK 7,8,9 versions or Java JDK oracle versions that are current on a new ubuntu 16.04.1 Linux os

    I tried OpenJDK 9 with the client and it wouldn't start.

    java -version
    openjdk version "9-internal"
    OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
    OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)


    -----------------------------------------------------> CUT <----------------------------------------------------------


    java -jar MyM-Launcher.jar
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at org.pushingpixels.substance.internal.utils.SubstanceColorUtilities.getDefaultBackgroundColor(SubstanceColorUtilities.java:759)
    at org.pushingpixels.substance.internal.utils.SubstanceColorUtilities.getBackgroundFillColor(SubstanceColorUtilities.java:661)
    at org.pushingpixels.substance.internal.ui.SubstancePanelUI.__org__pushingpixels__substance__internal__ui__SubstancePanelUI__installDefaults(SubstancePanelUI.java:74)
    at org.pushingpixels.substance.internal.ui.SubstancePanelUI.installDefaults(SubstancePanelUI.java)
    at javax.swing.plaf.basic.BasicPanelUI.installUI(java.desktop@9-internal/BasicPanelUI.java:62)
    at org.pushingpixels.substance.internal.ui.SubstancePanelUI.__org__pushingpixels__substance__internal__ui__SubstancePanelUI__installUI(SubstancePanelUI.java)
    at org.pushingpixels.substance.internal.ui.SubstancePanelUI.installUI(SubstancePanelUI.java)
    at javax.swing.JComponent.setUI(java.desktop@9-internal/JComponent.java:668)
    at javax.swing.JPanel.setUI(java.desktop@9-internal/JPanel.java:150)
    at javax.swing.JPanel.updateUI(java.desktop@9-internal/JPanel.java:126)
    at javax.swing.JPanel.<init>(java.desktop@9-internal/JPanel.java:86)
    at javax.swing.JPanel.<init>(java.desktop@9-internal/JPanel.java:95)
    at com.skcraft.launcher.swing.SwingHelper.showMessageDialog(SwingHelper.java:174)
    at com.skcraft.launcher.swing.SwingHelper.showErrorDialog(SwingHelper.java:144)
    at com.skcraft.launcher.FancyLauncher$1.run(FancyLauncher.java:44)
    at java.awt.event.InvocationEvent.dispatch(java.desktop@9-internal/InvocationEvent.java:313)
    at java.awt.EventQueue.dispatchEventImpl(java.desktop@9-internal/EventQueue.java:759)
    at java.awt.EventQueue.access$500(java.desktop@9-internal/EventQueue.java:97)
    at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:712)
    at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:706)
    at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@9-internal/ProtectionDomain.java:77)
    at java.awt.EventQueue.dispatchEvent(java.desktop@9-internal/EventQueue.java:729)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@9-internal/EventDispatchThread.java:192)
    at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@9-internal/EventDispatchThread.java:117)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@9-internal/EventDispatchThread.java:106)
    at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/EventDispatchThread.java:102)
    at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/EventDispatchThread.java:94)
    at java.awt.EventDispatchThread.run(java.desktop@9-internal/EventDispatchThread.java:83)
    -----------------------------------------------------> CUT <--------------------------------------------------------------

    if anyone is running other OpenJDK versions to get this to work smoothly. I would like to not have to do several trial and error attempts and still have crashy client issues - and know which of the two runs Minecraft better and more optimized!?



    I appreciate input, experiance and knowledge from the community of MYM. thank you in advanced.

    Meli0 - Galactic Science addicted.
     
  2. Syllogistics

    Syllogistics Active Member

    Messages:
    40
    Likes Received:
    8
    Local Time:
    5:03 PM
    Hey there!
    First of all, awesome to have another linux user here. Welcome to the family!

    To your problem: First of all, install Java 8. From what I have read, Java 9 isn't recommended.
    So, make sure to remove all of the other Java installations. A command that I normally use to install java with is:
    Code:
    sudo apt-get install default-jre
    That should install OpenJDK. If that doesn't work, undo that and try:
    Code:
    sudo apt-get install openjdk-8-jre
    OpenJDK should be A-OK, atleast it always worked for me. If not already done, make sure to get the proper drivers for your GPU, which you can normall find under "Other Software" > "Proprietary Driver"

    If you are rather the Oracle Java fan, you can install it from another source: (always make sure to trust the source, but it worked for me also)
    Install Oracle Java 8 In Ubuntu Or Linux Mint Via PPA Repository [JDK8] ~ Web Upd8: Ubuntu / Linux blog

    Then try doing
    Code:
    java -version
    , and it should show you Oracle Java.

    If you need any help or if it worked, just reply, I am here to help.

    #AllHailLinuxGaming ;)

    Syllogistics out.
     
    Meli0 and Messiah7 like this.
  3. Meli0

    Meli0 Well-Known Member

    Messages:
    20
    Likes Received:
    6
    Local Time:
    11:03 AM
    I attempted first default-jre which put in OpenJava 9. which didnt work in the first place after i uninstalled openjava 9

    so i removed it using apt. done.

    then I thought well i can manually install OpenJava 8. but i don't think that'll work so i skipped to Oracle Java

    java -version
    java version "1.8.0_101"
    Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

    up and running the client seems to be stable, I will see . hopefully the Nvidia card is running with it.
     
  4. Syllogistics

    Syllogistics Active Member

    Messages:
    40
    Likes Received:
    8
    Local Time:
    5:03 PM
    Excellent, I love to see a running and happy linux gamer ;)
    Feel free to ask any questions and/or leave me a PM.

    Have a nice day
    Syllogistics out.
    #AllHailLinuxGaming
     
    Meli0 likes this.
  5. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:03 AM
    just use the oracle JRE, there's linux binaries, OpenJDK is the same thing as the normal JDK iirc aswell
     
    Meli0 likes this.

Share This Page