1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial Ninja Fix for Mac Users with JDK issues

Discussion in 'Client & Site Support' started by JontyMcNab, Nov 12, 2018.

  1. JontyMcNab

    Joined:
    Nov 12, 2018
    Messages:
    4
    Likes Received:
    1
    Issue's for people using Tutorial - RuneMate on Linux

    Here's my monologue.Bug - Non-numeric value found - int expected - Macbook Pro '17

    FIX:
    I updated JavaSE and then Installed JDK8, i then added this to my .bash_profile in my home folder
    Code (Text):
    1.  
    2. export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
    3. export JAVA_10_HOME=$(/usr/libexec/java_home -v10)
    4. export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
    5.  
    6. alias java8='export JAVA_HOME=$JAVA_8_HOME'
    7. alias java10='export JAVA_HOME=$JAVA_10_HOME'
    8. alias java11='export JAVA_HOME=$JAVA_11_HOME'
    9.  
    10. java11
    11.  
    then whenever you need to do ./runemate.sh do
    Code (Text):
    1.  
    2. java8
    3.  
    Happy botting.
     
    Savior likes this.
  2. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Good fix for those on Mac who want to use multiple JDKs (y)
    Normally the installer would take care of java, but unfortunately install4j broke on Mojave
     
  3. JontyMcNab

    Joined:
    Nov 12, 2018
    Messages:
    4
    Likes Received:
    1
    Thank's man, hopefully get a quick stickie so nobody has to search intensively! :rolleyes:
     

Share This Page

Loading...