|_ HelloWorld.java Dockerfile FROM java:8 (Use brew cask install APP to install GUI apps use brew install APP.) Java is not a GUI app It should not require "cask" but at least Oracle is consistent. ![]() We use brew cask since we'd otherwise use the Oracle GUI installer that will likely not install Java properly on your Mac. UPDATE: Now that Java 8 is no longer the most current version, we need to install it this way: ![]() To get a list of all older versions of java: brew cask search java Thanks, it's amazing how horrible the Java installation process using the "official" links/docs are. See this helpful blog post for a description of how to use brew to install an earlier version of Java if needed. java 9) rather than a specific older one (for example, Java 8 as in the OP). ![]() Note that as of October 2017, the default brew command (as well as most of those in the comments) will install whatever is the latest major version JDK (i.e. If you want to manage multiple versions of Java on your Mac, consider using jenv. ![]() So after updating homebrew via brew update, you are set to use brew cask. Brew cask info java brew cask install java brew tap caskroom/versionsīrew cask install java jdk-8u112-macosx-圆4.dmgĪs of December 2015, it is now unnecessary to install cask manually as it is now part of homebrew's installation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |