【发布时间】:2011-02-20 06:05:30
【问题描述】:
我必须为仍在运行 JDK 1.5 的遗留应用程序编写一些代码。不幸的是,看起来 OS X 实际上并没有安装 1.5 JDK。它只是链接到 1.6:
/System/Library/Frameworks/JavaVM.framework/Versions $ ls -l
lrwxr-xr-x 1 root wheel 5 Apr 26 11:53 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Feb 11 15:33 1.3.1
lrwxr-xr-x 1 root wheel 10 Apr 26 11:53 1.4 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Apr 26 11:53 1.4.2 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Apr 26 11:53 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Apr 26 11:53 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 5 Apr 26 11:53 1.6 -> 1.6.0
drwxr-xr-x 7 root wheel 238 Apr 26 11:53 1.6.0
drwxr-xr-x 8 root wheel 272 Apr 26 11:53 A
lrwxr-xr-x 1 root wheel 1 Apr 26 11:53 Current -> A
lrwxr-xr-x 1 root wheel 3 Apr 26 11:53 CurrentJDK -> 1.6
从http://developer.apple.com/java/faq/ 看来,Java 是操作系统更新的一部分...我在 Mac OS X v10.6.3(雪豹)。有没有办法在这个操作系统版本上安装一个实际的 1.5 JDK?
或者我是否需要先尝试找到旧版本的 OS X 才能完成这项工作?
【问题讨论】: