How to get Mac OSX to update Java (JVM) to 1.6

Discussion in 'macOS' started by kmo19, Mar 15, 2010.

  1. kmo19 macrumors member

    Joined:
    Jan 7, 2009
    #1
    I have tried software update, I've tried downloading the update and installing it manually... no matter what I do, my machine is always running 1.5 when I need 1.6.

    Code:
    java -version
    java version "1.5.0_20"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02-315)
    Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode, sharing)
    How can I get my machine to find the 1.6 version and use it permanently?
     
  2. hakuryuu macrumors 6502

    Joined:
    Sep 30, 2007
    Location:
    Lomita, CA
    #2
  3. kmo19 thread starter macrumors member

    Joined:
    Jan 7, 2009
    #3
    Actually found a good link:

    http://gephi.org/users/install-java-6-mac-os-x-leopard/

    That results in this:
    Code:
    java -version
    java version "1.6.0_15"
    Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
    Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)

    However, I still get this error when trying to run apps that use java:

    Code:
    Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
    Anyone know how to do that?
     
  4. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #4
    Java for Apple

     
  5. Zortrium macrumors 6502

    Joined:
    Jun 23, 2003
    #5
    Assuming Java 1.6 is already installed, which it probably is, two things you need to do:

    1. Open up Java Preferences (in /Applications/Utilities) and make sure the order has Java 6 above Java 5.

    2. Set JAVA_HOME to /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home. E.g., my ~/.bashrc has this line:

    export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home"

    Once you've done this, everything should default to using Java 6.
     
  6. TKleek013 macrumors newbie

    Joined:
    Jun 9, 2011
    #6
    I'm running on 10.5.8 and I have this exact same problem even after dragging Java SE6 so that it's above Java 5 in preferences. I've checked in terminal to see that I actually have 1.6, which I do, however my MacBook is still using 1.5.

    I'm not very computer illiterate and this has been driving me mad for days so any help would do.
     
  7. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #7
    To find out what you have installed and what is currently configured as your default, open terminal and cd to /System/Library/Frameworks/JavaVM.framework/Versions and type "ls -las". When I do this I see:


    0 drwxr-xr-x 13 root wheel 442 Mar 8 20:03 .
    0 drwxr-xr-x 12 root wheel 408 Mar 8 20:03 ..
    8 lrwxr-xr-x 1 root wheel 5 Mar 8 20:02 1.3 -> 1.3.1
    0 drwxr-xr-x 3 root wheel 102 Feb 11 2010 1.3.1
    8 lrwxr-xr-x 1 root wheel 10 Mar 8 20:02 1.4 -> CurrentJDK
    8 lrwxr-xr-x 1 root wheel 10 Mar 8 20:02 1.4.2 -> CurrentJDK
    8 lrwxr-xr-x 1 root wheel 10 Mar 8 20:02 1.5 -> CurrentJDK
    8 lrwxr-xr-x 1 root wheel 10 Mar 8 20:02 1.5.0 -> CurrentJDK
    8 lrwxr-xr-x 1 root wheel 10 Mar 8 20:02 1.6 -> CurrentJDK
    8 lrwxr-xr-x 1 root wheel 10 Mar 8 20:02 1.6.0 -> CurrentJDK
    0 drwxr-xr-x 10 root wheel 340 Mar 8 20:03 A
    8 lrwxr-xr-x 1 root wheel 1 Mar 8 20:02 Current -> A
    8 lrwxr-xr-x 1 root wheel 59 Mar 8 20:02 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents


    To find out your current classpath, type

    javaconfig DefaultClasspath
     
  8. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #8
  9. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #9
  10. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #10
    LOL! Well, when you're old and tired and have CTS, you look for ways to save typing! :D
     
  11. mossamedes macrumors newbie

    Joined:
    Mar 3, 2012
    #11
    Power Mac G5 OsX 10.5.8 Java 1.6 problem

    Hello,

    I have made all updates, i'm running a G5 PowerMac with Os 10.5.8 and i need to enable java 1.6 to run some programs... I really need HELP please!!


    On terminal show me this:

    java -version

    java version "1.5.0_30"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
    Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)
     
  12. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #12
    Not possible. Java 6 for Mac OS X is Intel-only... you could use SoyLatte I suppose, but that doesn't integrate well with the rest of the system.
     
  13. mossamedes macrumors newbie

    Joined:
    Mar 3, 2012
    #13
    I´ve tried to install Soylatte but i can´ta and i don´t know why?!
    http://wiki.netbeans.org/JavaFXAndJDK6On32BitMacOS

    Please can you helpe? it's the first tima that i work on MAC.

     
  14. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #14
    Well, I looked at the SoyLatte site, and it looks like even they have left PowerPC Macs behind, except for Java 7 - but that's an early beta and not suitable for production use. Furthermore, since I no longer have a PPC Mac, I can't compile the SoyLatte source code into a binary you could make use of. :(
     
  15. mossamedes macrumors newbie

    Joined:
    Mar 3, 2012
    #15
    Did you know anyone that can do that for me? If i need to pay something i´ll pay... i really need and i'm a newbie on MAC OS.


     

Share This Page