If you see it

Live for passion

Install Java 7 on Mac

Install JDK 7 for Mac OS X 10.8.4

To install Java 7 (Java Development Kit 7, JDK 7), you need download jdk7 from Oracle site ( here ), you will have jdk-7u25-macosx-x64.dmg and just double click to install it.

JDK 7 JDK 7 update 25

1
2
3
4
5
6
7
8
9
10
11
12
$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

$ /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
    1.7.0_25, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home
    1.6.0_51-b11-457, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_51-b11-457, i386:   "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home

Note

Java Runtime Environment, JRE is differrent from JDK, after install this, you won’t be see the change in your terminal by java -version.

JRE

Quote from here.

The “JDK” is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software. The “JRE” is the Java Runtime Environment. I.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs.

Typically, each JDK contains one (or more) JRE’s along with the various development tools like the Java source compilers, bundling and deployment tools, debuggers, development libraries, etc.

Comments