Install JDK 1.5 in OSX 10.10

淺唱寂寞╮ 提交于 2019-12-24 02:18:57

问题


I'm using Mac OS X 10.10 (Yosemite), i have to use JDK 1.5 for legacy application development. I'm having troubles when installing JDK 1.5.

I'm able to find the 1.5.dmg (http://support.apple.com/downloads/DL1359/en_US/JavaForMacOSX10.5Update10.dmg), unfortunately this can't be installed in Yosemite.

Does anyone know how should i install JDK 1.5 in OS X 10.10 (Yosemite)?


回答1:


I would recommend using Homebrew. After installing it do the following:

brew tap caskroom/versions

See which versions of Java is available:

brew cask search java

Install the relevant version:

brew install java6

To manage the versions you could use something like jenv. Install:

brew install jenv

Change version:

jenv add <javaPath>


来源:https://stackoverflow.com/questions/28182787/install-jdk-1-5-in-osx-10-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!