Java For Mac Os X

Download here

This update will correct issues affecting some Java users following the installation of Mac OS X v10.3.9 Software Update. After updating to Mac OS X 10.3.9, some systems may have issues with Java.

Java For Mac Os X 10.5 Update 5

I just downloaded Java 7u17 on Mac OS 10.7.5 from here and then successfully installed it. In order to do some JNI programming, I need to know where Java installed on my Mac.

I thought that inside the /Library/Java/JavaVirtualMachines/ folder, there would be a folder called 1.7.0.jdk or something, but then I found that the folder is empty. This was confirmed by running ls /Library/Java/JavaVirtualMachines/ in the Terminal. I've tried searching for it to find out if it was installed somewhere else, but that doesn't seem to be turning anything up.

Could someone please tell me where Java is installed on my Mac?

thefourtheye

175k3030 gold badges327327 silver badges393393 bronze badges

ThunderforgeThunderforge

8,8371111 gold badges6161 silver badges105105 bronze badges

15 Answers

If you just want to find out the home directory of your most recent version of java, omit the version. e.g. /usr/libexec/java_home

gerrytangerrytan

32.4k77 gold badges7373 silver badges8989 bronze badges

You could use echo $(/usr/libexec/java_home) command in your terminal to know the path where Java being installed.

Pavithra GunasekaraPavithra Gunasekara

2,23777 gold badges2929 silver badges4343 bronze badges

Turns out that I actually had the Java 7 JRE installed, not the JDK. The correct download link is here. After installing it, jdk1.7.0jdk appears in the JavaVirtualMachines directory.

ThunderforgeThunderforge

8,8371111 gold badges6161 silver badges105105 bronze badges

If you install just the JRE, it seems to be put at:

MorrieMorrie

Abimaran Kugathasan

22.5k88 gold badges6161 silver badges9494 bronze badges

serkanserkan

Try This, It’s easy way to find java installed path in Mac OS X,

GoTO

1 ) /Library i.e Macintosh HD/Library

2) Click on Library in that we find Java folder.

3) So final path is

Java For Mac Os X 10.9

Jaywant KhedkarJaywant Khedkar

Java package structure of Mac OS is a bit different from Windows. Don’t be upset for this as a developer just needs to set PATH and JAVA_HOME.

So in .bash_profile set JAVA_HOME and PATH as below. This example is for Java 6:

Shawn

4,7411212 gold badges5757 silver badges9797 bronze badges

Bimales MandalBimales Mandal

If you type

This also gives the location from which the jars are loaded and hence also the java path.

jones j alapatjones j alapat

Edited: Alias to current java version is /Library/Java/Home

For more information: a link

mannymanny

just write /Library/Java/JavaVirtualMachines/
in Go to Folder --> Go in Finder

Mina FawzyMina Fawzy

14.7k99 gold badges9494 silver badges110110 bronze badges

I have just installed the JDK for version 21 of Java SE 7 and found that it is installed in a different directory from Apple’s Java 6. It is in /Library/Java… rather then in /System/Library/Java…. Running /usr/libexec/java_home -v 1.7 versus -v 1.6 will confirm this.

Tony KrochTony Kroch

I tried serkan’s solution, it found java 7’s location on OS X Mavericks.it is resided in '/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/'but to make it the default JDK I had to set JAVA_HOME system variable in .bash_profile in home directory to '/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/'so its up and running now thanks to serkan's idea

codercat

16.5k88 gold badges5151 silver badges8181 bronze badges

MehdiMehdi

2,08222 gold badges2626 silver badges2727 bronze badges

For :

  • OS X : 10.11.6
  • Java : 8

I confirm the answer of @Morrie .

Abdennour TOUMI

Java For Mac 10.6.8

40.6k1919 gold badges160160 silver badges171171 bronze badges

type which java in terminal to show where it is installed.

Pranay AryalPranay Aryal

3,00222 gold badges1919 silver badges2929 bronze badges

The System Preferences then Java control panel then Java then View will show the exact location of the currently installed default JRE.

PaulNUKPaulNUK

protected by Community♦Feb 11 at 6:14

Not the answer you’re looking for? Browse other questions tagged javamacos or ask your own question.

http://support.apple.com/kb/DL1359 is the newest Java that Mac OS X 10.5 will support on either Intel or PowerPC Macs. People with 10.5 through 10.5.7 must backup their data, and shut down, disconnect their backup, and then update to 10.5.8 before they can use the Java.

Use these tips if you are stuck with 10.5.8 to get your Flash up to date:

Note, if you need Java 1.6 (same as Java 6), according to the download link above, it is only available for 64 bit Intel Macs, and not PowerPC Macs. Otherwise

you are stuck with Java 1.5.

If you have an Intel Core2Duo, i3, i5, i7 or Xeon Mac, you can upgrade to Mac OS X 10.7.3 to get Java 7, which is far more secure.

Please read the link on upgrading, as there are pitfalls for taking this path are important to read.

Java For Mac Os X 10.5

Note: PowerPC Macs with 800 Mhz dual processor or lower speed (1 Ghz is higher) must update to 10.4.11 to get the latest Java:

Java For Mac Os X 10.10 Update

Java For Mac Os X 10.9

Download here

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store