1 2 3 Previous Next 44 Replies Latest reply: Jun 29, 2013 12:45 AM by rhimac
anyberry1 Level 1 Level 1 (0 points)

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)
  • 1. Re: Seriously?
    VikingOSX Level 5 Level 5 (5,490 points)

    Did you look in the System Preferences?

     

    There's still hope. The Java Preferences application was not removed from the Utilities folder on Snow Leopard after the *.37 update.

  • 2. Re: Seriously?
    anyberry1 Level 1 Level 1 (0 points)

    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.

  • 3. Re: Seriously?
    macjack Level 9 Level 9 (50,510 points)

    Article has been amended...

    http://support.apple.com/kb/DL1572

  • 4. Re: Seriously?
    anyberry1 Level 1 Level 1 (0 points)

    macjack, thanks. so then VikingOSX was right and this is the same update he mentioned.

     

    anyway, I finding it strange/wrong that apple simply removed the Java Preferences.app without offering an alternative.

  • 5. Re: Java Preferences app missing after java update
    Gerry Panganiban Level 1 Level 1 (15 points)

    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....

  • 6. Re: Java Preferences app missing after java update
    anyberry1 Level 1 Level 1 (0 points)

    You're right, the app doesn't seem to work anymore even if you copy it from somewhere else

  • 7. Re: Java Preferences app missing after java update
    Gerry Panganiban Level 1 Level 1 (15 points)

    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!

     


  • 8. Re: Java Preferences app missing after java update
    trifero Level 1 Level 1 (0 points)

    Fortunately, i always clon my drive before an important update. It´s an horror that "java preferences " dissapears after the update, cause it allows to deactivate java in the system. Of course, i reverted to previous state.

  • 9. Re: Java Preferences app missing after java update
    MadMacs0 Level 4 Level 4 (3,725 points)

    trifero wrote:

     

    "java preferences " dissapears after the update, cause it allows to deactivate java in the system.

    Although I agree that it's probably wise to run your Mac Java free, there is no currently known Java malware that can impact OS X. All the attacks to date have been through the browser plug-in.

  • 10. Re: Java Preferences app missing after java update
    TriArctic Consulting Level 1 Level 1 (0 points)

    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?

  • 11. Re: Java Preferences app missing after java update
    MadMacs0 Level 4 Level 4 (3,725 points)

    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.

  • 12. Re: Java Preferences app missing after java update
    TriArctic Consulting Level 1 Level 1 (0 points)

    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.

  • 13. Re: Java Preferences app missing after java update
    Gerry Panganiban Level 1 Level 1 (15 points)

    I was able to get Java GUI apps (just Eclipse, actually. Haven't tried anything else yet) running by running the Java 7 installer again after changing the symlinks.

  • 14. Re: Java Preferences app missing after java update
    TriArctic Consulting Level 1 Level 1 (0 points)

    So you changed the symlinks to point to java 6, then ran the Java 7 installer?

1 2 3 Previous Next