What is the location path to Java JDK 8?

Hi there,


My son is interested in mucking about with Java, mainly to try his hand at writing Minecraft mods. We downloaded the Java JDK 8 from the Oracle site, and it seemed to install correctly. But for the life of me, I can't (a) open it and (b) even find it. I've tried a Spotlight and Finder search, but no love.


Can someone please tell me where the Java JSK 8 lives in the OS? And how I can access/open it? (Or is this a situation where we'll be using Terminal?) My son is on a late 2016 entry level 13" Macbook Pro running the latest version of Sierra.


Thanks!

Posted on May 22, 2017 1:56 PM

Reply
6 replies

May 22, 2017 2:02 PM in response to Maggot

Hello Maggot,

It looks like it gets installed into:

/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home


That is the path that you would assign to the JAVA_HOME environment variable. You would probably also want to add "/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin" to the user's PATH environment variable.

May 22, 2017 3:25 PM in response to Maggot

There are many online Java courses, https://www.google.com/search?q=java+tutorials&ie=utf-8&oe=utf-8. I found this free course easy to follow and use.

https://www.sololearn.com/


And as already stated, you don't "open" Java you use its libraries from within an Integrated Development Environment (IDE). There are several IDE's including Eclipse, https://eclipse.org/, NetBeans, https://netbeans.org/, etc. I prefer NetBeans.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What is the location path to Java JDK 8?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.