How to downgrade JRE/JDK on Mac OSX?

前端 未结 9 2010
既然无缘
既然无缘 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...:)

提交回复
热议问题