fivepax.blogg.se

How to find where brew cask installed java for jenv
How to find where brew cask installed java for jenv








how to find where brew cask installed java for jenv

OpenJDK Runtime Environment (AdoptOpenJDK )(build 1.8.0_212-b03 ) # right, forgot about that, jeebus java please suck less $ java -version $ jenv shell 1.8 # apparently 'jenv local' wasn't enough? $ jenv versionġ.8 ( set by /Directory/.java-version ) $ java -v $ jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home $ brew cask install homebrew/cask-versions/adoptopenjdk8 Homebrewers seemed to prefer AdoptOpenJDK, which is a perfectly cromulent name and doesn't at all add to the confusion of the dozens of things named "Java." So let's get that installed: tl dr Homebrewers had to remove the java8 cask. Sounds like they successfully ran the "embrace, extend, extinguish" playbook on the "open" OpenJDK, though I am not a Java and thus do not fully understand the insanity of these versions and licensing issues). You could install this via a cask called, funnily enough, java8. Īfter asking my coworkers, Android and our mapbox-java repo uses JDK 8. Sadly 11.0 is not 53.0, so I still got basically the same error when I ran make build-config. java-version file and doesn't actually set JAVA_HOME. Had to add both of the latter jenv commands, as I guess jenv local only creates the. $ jenv add /Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home Multiple versions means you need a version manager, and it looks like jenv is Java's version manager manager. No idea what version of Java will get me this 53.0 "class file," but let's try the last release. So I guess I need a lower version of Java. Jdk-12.0.1.jdk -> /Library/Java/JavaVirtualMachines/openjdk-12.0.1.jdk (Generic Artifact ) OpenJDK 64-Bit Server VM (build 12+33, mixed mode, sharing ) $ brew cask info java OpenJDK Runtime Environment (build 12+33 ) # c'mon java, really :/ smh $ java -version Error: Could not create the Java Virtual Machine.Įrror: A fatal exception has occurred.










How to find where brew cask installed java for jenv