简体   繁体   中英

Java RE 6 on Mac Os High Sierra

I am using the xlsx package in R Studio which does not seem to work on Java RE 8. I have now been told to use Java RE 6 for R Studio to work, however it seems that for Mac Os High Sierra, the only older version available for download would be Java 7, as Mac OS is no longer included in Java 6 Download Archives.

Is anyone having an idea how I could use Java 6 on Mac Os High Sierra.

Thanks

With my latest update of OSX it knocked out my java6 so I had to go dig up this solution again and came across your question. Not sure whether to put this as an answer or comment, but this solution has worked the best for me: Mac OS X and multiple Java versions

To summarise: (a large part of this is just copy paste from the link above)

1) Install homebrew, jenv, & homebrew-cask

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install jenv
brew tap caskroom/cask

2) Add the "caskroom/versions" tap to homebrew using

brew tap caskroom/versions

3) Install Java6 (or whatever version you want)

brew cask install java6

4) Add java version to jenv

jenv add <javaVersionPathHere>

See jenv docs for more info: http://www.jenv.be/

I especially recommend using the 'jenv local' setup so you can specify java6 for one specific directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM