How to downgrade JRE/JDK on Mac OSX?

前端 未结 9 2002
既然无缘
既然无缘 2020-12-15 05:35

Does anyone know how to downgrade the version for JRE/JDK from 1.6.0_24 to 1.6.0_18 on a Mac OSX thru Terminal? I need to downgrade in order to get a Java applet working in

相关标签:
9条回答
  • 2020-12-15 06:13

    These days MAC OS comes with latest java version(8 or later).

    Even if you install the old versions, it points to the Newest version. All it need is just pointing to the old version. To downgrade to any version that is preinstalled is to create a symlink of that version.

    Follow these simple steps to downgrade your java version.

       (1) cd /System/Library/Frameworks/JavaVM.framework/Versions
    
       (2) sudo bash
    
       (3) rm Current
    
       (4) ln -s 1.6.0/Contents/ Current
    
       (5) java -version
    

    This will point the java to last update in java6. And now update all the paths.

    Hope it might be helpful and let me know if it works...:)

    0 讨论(0)
  • 2020-12-15 06:22

    I removed the JavaAppletPlugin: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin

    and all 1.8 JDKs: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk

    Then I was able to re-install 1.7.

    0 讨论(0)
  • 2020-12-15 06:25

    That's easy. You have to remove de .jdk directory of the JDK 7 in /Library/Java/JavaVirtualMachines. Now you only have to install the version you like. =)

    More info: http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html#uninstall

    0 讨论(0)
提交回复
热议问题