JDK Installation Directory and the bin Subdirectory

The JDK’s installation directory varies by platform. The directories listed below are for Oracle’s JDK 7 update 51:

• 32-bit JDK on Windows:

C:\Program Files (x86)\Java\jdk1.7.0_51

• 64-bit JDK on Windows:

C:\Program Files\Java\jdk1.7.0_51

• Mac OS X:

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

• Ubuntu Linux:

/usr/lib/jvm/java-7-oracle

Depending on your platform, the JDK installation folder’s name might differ if you’re using a different update of JDK 7 or using JDK 8. For Linux, the install location depends on the installer you use and possibly the version of Linux that you use. We used Ubuntu Linux. The PATH environment variable must point to the JDK installation directory’s ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.