Why does IntelliJ not accept /usr/local/opt/openjdk (installed by Brew) as a JDK?. As ZackK wrote spark is incompatible with Java9, so you can check the versions of java you have in your machine and choose a compatible version, assuming you have one. Homebrew install latest Java (OpenJDK) on macOS Homebrew install Java 8. If you did install Java 9, what you need to do is install Java 8 instead: brew cask uninstall java brew tap caskroom/versions brew cask search java brew cask install java8. macos - IntelliJ IDEA JDK configuration on Mac OS. 9 onward, if Xcode is already installed in Mac OS X then Command Line Tools. ![]() This could have saved me a few extra minutes of my day. I guess this is just a friendly reminder for me to always read my logs. If you need to have first in your PATH, run:įor compilers to find you may need to set: Sudo ln -sfn is keg-only, which means it was not symlinked into /opt/homebrew,īecause this is an alternate version of another formula. ![]() => Caveatsįor the system Java wrappers to find this JDK, symlink it with In gathering up material for this post, I discovered that the solution to this just happened to be buried in the caveats that were logged during installation. With the symlink in place, IntelliJ detects the installation as expected. Java SE 8 LTS (JDK 8) (March 2014): Included support for Lambda expressions, default and static methods in interfaces, improved collection, and JavaScript. $ sudo ln -s /Library/Java/JavaVirtualMachines This was a very easy fix to put in place. Selecting the Project SDK dropdown did not give me the option to use the JDK I just installed.Īfter digging around a bit, I discovered that this is because brew may not symlink the JDK installation to /Library/Java/JavaVirtualMachines. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM platform. ![]() However, I noticed that IntelliJ did not auto-detect the Java installation when creating new projects. Java SE 8 Archive Downloads (JDK 8u202 and earlier) The JDK is a development environment for building applications using the Java programming language. ![]() $ brew install brew install intellij-idea-ce I recently went through a Homebrew (brew) Open JDK 11 and IntelliJ IDEA installation on a new Macbook Pro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |