1

I have Java 8 installed by an admin

  • /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin
  • /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/bin

I needed to install java9, so I downloaded and installed the JDK to

/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin

However, I got no .../jre folder!

When I tried to install the JRE as a standalone, the installation completed fine but there's nothing new under /Library/Java/JavaVirtualMachines (or jdk-9.0.4.jdk)

I need to have the jre folder there or at least to know where it is so I can configure my way to it. How can this be achieved?

  • What path do you expect the jre folder to be? Doesn't running java from the bin directories you mention work? – user151019 Apr 13 '18 at 23:47
1

The Java 9 (and 10) JDK no longer includes a separate jre directory. Instead you just use the main JDK directory - the 'Contents/Home' directory.

The output of the /usr/libexec/java_home command will give you the directory to use.

  • That didn't work for eclipse. Luckily, /usr/bin did. – DraxDomax Apr 19 '18 at 12:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .