Installing JDK 7 on Mac OS 10.6.8 [duplicate]


This question already has an answer here:

<ul><li> <a href="/questions/13536667/how-to-install-java-jdk-7-on-snow-leopard" dir="ltr" rel="nofollow">How to install java jdk 7 on Snow Leopard</a> <span class="question-originals-answer-count"> 9 answers </span> </li> </ul>

I have a Mac with OS Snow Leopard (10.6.8). I want to develop with JDK 7 but Oracle's website says JDK need OS 10.7.3 and later. So I followed some questions and answers on a similar topic here on Stackoverflow and found the following answer (by @larsac), using Pacifist to install JDK 7:

"The answer from @reukiodo is definitely the way to go, so thanks a bunch!. However, it might need some further explanation for newbs like myself.

1) Download the two DMG's that @reukiodo posted links to.

2) Install Pacifist.

3) Open the java-DMG with pacifist.

4) In the 'Package Contents'-tab (default tab), select the 'Contents of JDK 7 Update XX.pkg' (XX being e.g. 51).

5) Click the 'Install' button and follow the on-screen instructions.

6) Open Java Preferences.app in yout Utilities folder and drag Java SE 7 to the top of the list of Java versions in the 'General'-tab (default tab)."

I followed all these steps: as far as step 5) everything works fine, but then <strong>step 6) doesn't work</strong> for me, i.e. when I open my <strong>Java Preferences.app</strong> I have no Java SE 7 so I cannot drag it!


Mac has a useful tool for change between several java versions that can help you. This is /usr/libexec/java_home.

Then you can try set JAVA_HOME on .profile file at your home

export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)

just be sure that you have 1.7 version entry at /Library/Java/JavaVirtualMachines folder


  • Three Select Boxes Interacting to Yield One Result - HTML, JavaScript or jQuery
  • Which one is better: DMG or PackageMaker
  • Xcode updated to 7.2 but still shows 7.1 only
  • Install JDK 1.5 in OSX 10.10
  • Connect Printer to android device via wi - fi router
  • Link in Google search results is not redirected to expected page as per .htaccess
  • android 2.2 WebView and WebViewClient RTSP problem
  • HtmlAgilityPack and large HTML Documents
  • ube error: _mm_aeskeygenassist_si128 intrinsic requires at least -xarch=aes
  • How to write an RSpec test for Ryan Bates' helper from screencast #228?
  • MS Access query with dynamic from statements
  • d3.js - Tree Layout - How can I flip it?
  • How to detect in selenium whether loading of a javascript file is loaded via ajax?
  • Printing in IE8 Has @href contents inline
  • Javascript get anchor href on click
  • How to check the permission whether a friend allow me to post on his wall or not using php sdk
  • Converting urls to links in a string using preg_replace()
  • Subreport causing infinite loop
  • Check for empty textboxes using C# function
  • SEO friendly 301 redirect .htm to .aspx
  • Help with mod_rewrite
  • IIS 7.5 404 Error for .PDF files
  • Microsoft Chart Controls for Microsoft .NET Framework 4.0
  • VB.Net Double comparison after some additions
  • Is mp4 stream able with ffserver?
  • Zeromq with python hangs if connecting to invalid socket
  • Python/Javascript: WYSIWYG html editor - Handle large documents fast and/or design theory
  • Create function that can pass a parameter without making a new component
  • why calling cd shell command through system() or execvp() from a child process won't work?
  • IE10 strips out hashtag from the URL
  • Why cepheus don't send int without quotes to orion?
  • Looking for good analogy/examples for monitor verses semaphore
  • saving file generated by TCPDF
  • How to match http request and response using Jersey ContainerRequestFilter and ContainerResponseFilt
  • Content-Length header not returned from Pylons response
  • Python urlparse: small issue
  • ImageMagick, replace semi-transparent white with opaque white
  • NHibernate Validation Localization with S#arp Architecture
  • Can I make an Android app that runs a web view in Chrome 39?
  • How do I rollback to a specific git commit