How do I use JDK 7 on Mac OSX?

前端 未结 15 2246
滥情空心
滥情空心 2020-11-29 17:13

I would like to use the WatchService API as mentioned in this link: http://download.oracle.com/javase/tutorial/essential/io/notification.html

After reading around, I

15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 17:24

    An easy way to install Java 7 on a Mac is by using Homebrew, thanks to the Homebrew Cask plugin (which is now installed by default).

    Run this command to install Java 7:

    brew cask install caskroom/versions/java7
    

提交回复
热议问题