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

MacMan988

macrumors 6502a
Original poster
Jul 7, 2012
869
150
This thread came to my mind as soon as i saw today's Apple software update for OS X.

Apple seems to have taken action to resolve the confusion towards the java versions availability for the mac os x from both Apple and Oracle.
 

shareef777

Suspended
Jul 26, 2005
2,445
3,276
Chicago, IL
This thread came to my mind as soon as i saw today's Apple software update for OS X.

Apple seems to have taken action to resolve the confusion towards the java versions availability for the mac os x from both Apple and Oracle.

Not really. I had both 1.6 and the newer 1.7 and would switch to 1.6 for those apps that would not work on the newer version. Now with the java preference pane gone, I have no way of switching back to 1.6 and some of my apps can't load now.
 

dyn

macrumors 68030
Aug 8, 2009
2,708
388
.nl
This thread came to my mind as soon as i saw today's Apple software update for OS X.

Apple seems to have taken action to resolve the confusion towards the java versions availability for the mac os x from both Apple and Oracle.
It only installs the Java 1.6 build 37 on the machine, which is the latest in the 1.6 series. Oracle serves Java 1.7 for Windows, Linux, OS X, etc. The same as it was when Oracle first started to serve Java 1.7 for OS X. The only thing that is being done now is to push OS X users towards the Oracle one by removing Java 1.6 web plugin (the plugin used by the web browsers). This creates even more confusion.

The full text from this particular update:
This release updates the Apple-provided system Java SE 6 to version 1.6.0_37 and is for OS X versions 10.7 or later.

This update uninstalls the Apple-provided Java applet plug-in from all web browsers. To use applets on a web page, click on the region labeled "Missing plug-in" to go download the latest version of the Java applet plug-in from Oracle.

This update also removes the Java Preferences application, which is no longer required to configure applet settings.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,482
16,197
California
Not really. I had both 1.6 and the newer 1.7 and would switch to 1.6 for those apps that would not work on the newer version. Now with the java preference pane gone, I have no way of switching back to 1.6 and some of my apps can't load now.

/Library/Java/JavaVirtualMachines

Go to this folder and remove 1.7. This will leave you Java 6 (1.6) for the runtime for apps, and it will leave 7 (1.7) in place as the web plugin.

I had the same experience as you with this breaking the Crashplan OS X app and this fixed it by allowing the app to use 1.6 again.
 

shareef777

Suspended
Jul 26, 2005
2,445
3,276
Chicago, IL
/Library/Java/JavaVirtualMachines

Go to this folder and remove 1.7. This will leave you Java 6 (1.6) for the runtime for apps, and it will leave 7 (1.7) in place as the web plugin.

I had the same experience as you with this breaking the Crashplan OS X app and this fixed it by allowing the app to use 1.6 again.

Thanks, but /Library/Java/JavaVirtualMachines folder is empty. Though I can successfully launch java applets from a web browser and/or a desktop shortcut (goes straight to the 1.7 version).
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,482
16,197
California
Thanks, but /Library/Java/JavaVirtualMachines folder is empty. Though I can successfully launch java applets from a web browser and/or a desktop shortcut (goes straight to the 1.7 version).

What do you get with the command "java -version" (without quotes) in Terminal? I had two 1.7 entries in that folder and by deleting them the java -version command showed my runtime (not the web plugin) back at 1.6.
 

shareef777

Suspended
Jul 26, 2005
2,445
3,276
Chicago, IL
What do you get with the command "java -version" (without quotes) in Terminal? I had two 1.7 entries in that folder and by deleting them the java -version command showed my runtime (not the web plugin) back at 1.6.

And that's what's getting me. I've installed the latest version (1.7) multiple times, but it continues to show this:

java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

Though the Java's site shows i'm on 1.7 and all applets I launch are erroring out because i'm running 1.7.
 

dyn

macrumors 68030
Aug 8, 2009
2,708
388
.nl
Read the readme's that Oracle puts on their website :)

If you want the commandline stuff (java -version) you need to install the JDK. Previously you could dictate whether to use version 6 or 7 by rearranging them in Java Preferences. This is now impossible because Java Preferences will be removed with this update. You can have multiple JDK versions on your system which is why you had this option.

If you only run Java applications/applets you only need the JRE which is the web plugin that this update also removes. This plugin will install a System Preferences panel under the "Other" category. You can use this to launch the JRE preferences. This is enough because you can only have 1 JRE version on your system. It seems that Apple is going this route and thus Java Preferences is obsolete. If you require more Java versions to run along side then Oracle has to come up with something to do so.
 

shareef777

Suspended
Jul 26, 2005
2,445
3,276
Chicago, IL
Read the readme's that Oracle puts on their website :)

If you want the commandline stuff (java -version) you need to install the JDK. Previously you could dictate whether to use version 6 or 7 by rearranging them in Java Preferences. This is now impossible because Java Preferences will be removed with this update. You can have multiple JDK versions on your system which is why you had this option.

If you only run Java applications/applets you only need the JRE which is the web plugin that this update also removes. This plugin will install a System Preferences panel under the "Other" category. You can use this to launch the JRE preferences. This is enough because you can only have 1 JRE version on your system. It seems that Apple is going this route and thus Java Preferences is obsolete. If you require more Java versions to run along side then Oracle has to come up with something to do so.

Until Oracle does so, Apple should not push this update thru without a way to revert it. Now I'm stuck on JRE 1.7 when I have no method of pushing 1.6. Which I'm curious as to why Apple bothered to update 1.6 when you can't run it anyway.
 

dyn

macrumors 68030
Aug 8, 2009
2,708
388
.nl
I searched a bit more and there seems to be something on the commandline to use the various JDKs on the machine:

To run a different version of Java, either specify the full path, or use the java_home tool:

/usr/libexec/java_home -v 1.7.0_06 --exec javac -version

For more information, see the java_home(1) man page.
Source: http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html#version

If you do a "man java_home" in Terminal/iTerm2/etc. it gives you the manual. It doesn't mention anything about permanently setting a specific JDK version as the default though.
 

turtlez

macrumors 6502a
Jun 17, 2012
977
0
I had to install Java and it makes me feel more sick than when I installed Flash. My mac doesn't feel the same with those two installed.
 

viper1165

macrumors newbie
Sep 7, 2007
10
0
I have Java disabled from my iMac, but for the past 2 months or so I have been getting annoying pop ups from saying I need to "download Java SE 6". Does anyone know how to get rid of this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.