Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kmo19

macrumors member
Original poster
Jan 7, 2009
51
0
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?
 
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?
 
Java for Apple

Apple Computer supplies their own version of Java. Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.

apple_update.png


If you have problems with downloading, installing or using Java on Mac, please contact Apple Computer Technical Support.
 
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.
 
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.
 
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
 
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)
 
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)
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.
 
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.
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. :(
 
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.


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. :(
 
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)

Sources from: https://macintoshgarden.org/apps/openjdk7-ppc
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.