Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Java Preferences app missing after java update

The last java update on OS X includes this:

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


Really? I understand that you can only use oracle java for java applets now, ok. But what about switching between different versions of Java that you want to use on the command line? I guess I'll recover the app from backup. Just wondering if there is an alternative and if this decision had some logic.

OS X Mountain Lion (10.8.2)

Posted on Oct 18, 2012 5:55 AM

Reply
44 replies

Oct 18, 2012 6:08 AM in response to VikingOSX

In System Preferences there is the Java Control Panel by Oracle but that only includes settings of Oracle java - you cannot switch between different JREs/JDKs.


*.37 means Java 1.6.0_37 update? Yes, that didn't remove it. This is something else - the java security update from this Tuesday - 10/16/2012 - see the link above the topic title above.

Oct 18, 2012 5:11 PM in response to anyberry1

Funny. I was just showing a co-worker how to use Java Preferences to change java versions when the installer deleted it from under me. Now I can't get back to using Java 1.6.0_37 even though I know it is still installed.


I tried copying Java Preferences.app from another Mac. It took a few minutes to start up, but it finally ran and showed me the familiar options to choose java versions.


But... it didn't work. I'm still seeing


java version "1.7.0_06"

Java(TM) SE Runtime Environment (build 1.7.0_06-b24)

Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)


On the command line!


I know I can just change all the symlinks for /usr/bin/java (and other java-related binaries) to the 1.6 version, but there had got to be a better way....

Oct 19, 2012 11:20 AM in response to anyberry1

Well I managed to workaround the issue by updating my symlinks. Here's what I did:


>cd /System/Library/Frameworks/JavaVM.framework/Versions

>ls -l

total 72

lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.4 -> CurrentJDK

lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.4.2 -> CurrentJDK

lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.5 -> CurrentJDK

lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.5.0 -> CurrentJDK

lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.6 -> CurrentJDK

lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.6.0 -> CurrentJDK

drwxr-xr-x 8 root wheel 272 Oct 18 16:42 A

lrwxr-xr-x 1 root wheel 10 Oct 18 17:18 Current -> A

lrwxr-xr-x 1 root wheel 59 Oct 18 16:41 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents

>sudo mv Current Current.bak

>sudo ln -s CurrentJDK Current

>java -version

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)


This changes the 'Current' symlink to point to the same version that 'CurrentJDK' is pointing to. This may or may not be the same on your system, so double check. This may or may not cause other problems, but so far I haven't seen any.


ITo undo the changes, just go back to the same directory and:


>sudo rm Current

>sudo mv Current.bak Current


Hope this helps!


Oct 22, 2012 2:36 PM in response to Gerry Panganiban

Running this does seem to change my default java from the command line, but it keeps all GUI launched java apps from actually opening. For instance I can't open IntelliJ Idea or even the Oracle Java Preferences Pane. If I undo the change things work fine again. I know this method used to work in earlier versions, but doesn't look like it is quite that simple now.


Does anyone have a different/better way of doing this?

Oct 22, 2012 3:36 PM in response to TriArctic Consulting

TriArctic Consulting wrote:


Running this does seem to change my default java from the command line, but it keeps all GUI launched java apps from actually opening.


Does anyone have a different/better way of doing this?

Not sure what you want your end state to be, but Apple Just posted Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

Oct 22, 2012 3:40 PM in response to MadMacs0

Looks like that takes care of web start and applets. I also need java 6 to be the default JRE/JDK on the system too. I've messed around with relinking the symlinks in /System/Library/Frameworks/JavaVM.framework/Versions but any changes there yield correct results from the command line but any java application that is launched fails to load.

Java Preferences app missing after java update

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.