问题
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