开发者

Installing JDK 1.5 on OS X Lion

开发者 https://www.devze.com 2023-03-27 03:24 出处:网络
How to install JDK 1.5 in Lion? I need it to compile Android 2.2. I followed the instruction mentioned in this site, but still couldn\'t get it to show on开发者_高级运维 Java Preferences.

How to install JDK 1.5 in Lion?

I need it to compile Android 2.2. I followed the instruction mentioned in this site, but still couldn't get it to show on开发者_高级运维 Java Preferences. installing jdk 1.5


I made small script that can automate the install without requiring you to install any other software. This jdk install part of the script is based on works from this blog: http://www.s-seven.net/zend_5x_lion

  1. Download the leopard java5 update : http://support.apple.com/kb/DL1359
  2. In the same folder download the script : https://gist.github.com/1163008
  3. In a terminal make it executable : chmod +x the_script.sh
  4. Run the script as root (using sudo) : sudo the_script.sh
  5. If everything ran without a hitch the Java preference window should list the java 5 runtime

Original instructions in french (there's a translation button) : http://blog.arkey.fr/2012/07/30/script-pour-installer-le-jdk-5-sur-macosx-lion/

EDIT : The script has been updated to work on Mountain Lion as well. The script can download the Java 5 update too.

0

精彩评论

暂无评论...
验证码 换一张
取 消