The Apple Java for OS X 2012-006 1.0 update for Mac OS X 10.7, 10.8 operating systems delivers improved security, reliability, and compatibility by uninstalling the Apple-provided Java applet plug. Unable to install Java 7 in Eclipse on Mac OS. I installed Java 7 on my Mac, and tried to update Java 7 in my Eclipse application build path. After adding the jdk configuration, Eclipse was throwing below error. A MAC mechanism that is based on cryptographic hash functions is referred to as HMAC. HMAC can be used with any cryptographic hash function, e.g., SHA256 or SHA384, in combination with a secret shared key. HMAC is specified in RFC 2104. Every implementation of the Java platform is required to support the following standard Mac algorithms: HmacMD5.
See JDK 7 and JRE 7 Installation Guide for general information about installing JDK 7 and JRE 7.
![Java 7 For Mac Java 7 For Mac](/uploads/1/3/3/9/133936819/286097601.png)
See the Mac OS X Platform Install FAQ for general information about installing JRE 7 on Mac OS X.
Contents
System Requirements
- Any Intel-based Mac running Mac OS X 10.7.3 (Lion) or later.
- Administrator privileges.
Note that installing the JRE on a Mac is performed on a system wide basis, for all users, and administrator privileges are required. You cannot install Java for a single user.
Only one JRE can be installed at a time. The system will not install a JRE that has a lower version than the current version. If you wish to install a lower version of the JRE, first uninstall the current version. Installing a JRE from Oracle will not update java -version symlinks or add java to your path. To be able to do this, you need to install the JDK.
JRE 7 Installation Instructions
The JRE installation includes the JavaFX Runtime which is incorporated into the same directory structure.
Installation of the 64-bit JRE on Mac Platforms
Depending on your processor, the downloaded file has one of the following names:
- jre-7u<version>-macosx-amd64.dmg
- jre-7u<version>-macosx-x64.dmg
Where <version> is 6 or later.
1. Download the file. Before the file can be downloaded, you must accept the license agreement.
2. From either the Downloads window of the browser, or from the file browser, double click the .dmg file to launch it.
3. A Finder window appears containing an icon of an open box and the name of the .pkg file Double click the package icon to launch the Install app.
4. The Install app displays the Introduction window. Click Continue.
4a. Note that, in some cases, a Destination Select window appears. This is a bug, as there is only one option available. If you see this window, select Install for all users of this computer to enable the continue button. Click Continue.
5. The Installation Type window appears. Click Install.
6. A window appears which says 'Installer is trying to install new software. Type your password to allow this.' Enter the Administrator login and password and click Install Software.
7. The software is installed and a confirmation window appears.
After the software is installed, delete the dmg file if you want to save disk space.
Determining the Installed Version of the JRE
If you have not yet installed Apple's Java Mac OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. See Note for Users of Macs that Include Apple Java 6 Plug-in.
Only one JRE can be installed. Installing a JRE removes the previously installed JRE. The JRE version used by the system can be determined in one of two ways:
- From System Preferences click the Java icon from the Other category. This launches the Java Control Panel. Click About....
- Type the following in a Terminal window:
The system will not install a JRE that has a lower version than the current version. If you want to install a lower version, first uninstall the existing version.
Uninstalling the JRE
To uninstall the JRE, you must have Administrator privileges and execute the remove commands either as root or by using the sudo(8) tool.
Remove one directory and one file (a symlink), as follows:
![Java 7 for mac download Java 7 for mac download](/uploads/1/3/3/9/133936819/775653252.png)
- Navigate to /Library/Internet Plug-Ins and remove the JavaAppletPlugin.plugin directory.
- Navigate to /Library/PreferencePanes and remove JavaControlPanel.prefpane.
Do not attempt to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.
Download Java 7 For Mac Os Sierra
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.
Greenhorn
posted 5 years ago
I have been programming in java for a bit now and can generally figure out things. But this one has me stumped. I have a mac and I have recently updated from java 6 to java 7. I had quite a bit of code that was running fine with java 6, but is having problems in java 7. The precise problem is that only the first JFileChooser dialog window in the program will actually show up (the window to select the files). I include a snippet of code below:
Only the open dialog window of chooser1 will show up. The dialog window for chooser2 never shows up. The program acts like the chooser2.show OpenDialog statement is executing and is waiting for me to select a file, but nothing shows up.
As I said code like this (several JOptionChooser dialogs or JOptionPane dialog in a row) ran with no problem before the upgrade to java 7. Now only the first one show up. ??? help!
Only the open dialog window of chooser1 will show up. The dialog window for chooser2 never shows up. The program acts like the chooser2.show OpenDialog statement is executing and is waiting for me to select a file, but nothing shows up.
As I said code like this (several JOptionChooser dialogs or JOptionPane dialog in a row) ran with no problem before the upgrade to java 7. Now only the first one show up. ??? help!
Sheriff
posted 5 years ago
Welcome to the Ranch!
I can't reproduce the issue on my Windows / Java 7 box. Are you sure you're running this code on the Event Dispatch thread?
I can't reproduce the issue on my Windows / Java 7 box. Are you sure you're running this code on the Event Dispatch thread?
Greenhorn
posted 5 years ago
Martin,
Thank you for your time to reply, but as I said, I am working on a MAC which has 'special' issues.
As far as an event dispatch thread,... well let me put it this way. If you cut and paste the above code into the
main method of a new class and then compile and run, you should get two file chooser dialog window in a row.
Nothing exotic, nothing more than a novice program would do.
I believe this is a Mac issue and I hope there are others out there (mac users) that might have had the same problem.
Java 7 is the first non-apple version of java available from oracle. As such, there are bugs!! This is the reason that
questions to uninstall java 7 on macs are such popular topics!!
I teach java and and a few of my students that were mac users and upgraded also had this problem. Their solution was to
go back to java 6. I hope to solve this and move on.
Thank you for your time to reply, but as I said, I am working on a MAC which has 'special' issues.
As far as an event dispatch thread,... well let me put it this way. If you cut and paste the above code into the
main method of a new class and then compile and run, you should get two file chooser dialog window in a row.
Nothing exotic, nothing more than a novice program would do.
I believe this is a Mac issue and I hope there are others out there (mac users) that might have had the same problem.
Java 7 is the first non-apple version of java available from oracle. As such, there are bugs!! This is the reason that
questions to uninstall java 7 on macs are such popular topics!!
I teach java and and a few of my students that were mac users and upgraded also had this problem. Their solution was to
go back to java 6. I hope to solve this and move on.
Sheriff
posted 5 years ago
cate anderson wrote:As far as an event dispatch thread,... well let me put it this way. If you cut and paste the above code into the
main method of a new class and then compile and run, you should get two file chooser dialog window in a row.
Nothing exotic, nothing more than a novice program would do.
main method of a new class and then compile and run, you should get two file chooser dialog window in a row.
Nothing exotic, nothing more than a novice program would do.
Yes, I can put that code into my main method and it works in my environment. Nevertheless, I wouldn't be so benevolent about it. Swing has a clearly documented requirement that all Swing code must be run on the Event Dispatch thread, and teaching students otherwise is very, very bad, in my opinion. It might work somewhere, but it isn't guaranteed to work. Such code is faulty.
If you take your example, run it on the EDT and it doesn't behave as you expect, then yes, that would mean Java on your platform has problems. I'd suggest to try it (I can't do it myself, not having a Mac) and if it doesn't work, to file a bug with Oracle.
author and jackaroo
posted 5 years ago
Martin Vajsar wrote:If you take your example, run it on the EDT and it doesn't behave as you expect, then yes, that would mean Java on your platform has problems. I'd suggest to try it (I can't do it myself, not having a Mac) and if it doesn't work, to file a bug with Oracle.
Emphasis on running it within the Event Dispatch thread - don't file a bug report otherwise.
For what it's worth, running it within Eclipse Kepler (20130919-0819) on my Mac Mountain Lion 10.8.5 (Kernel Version 12.5.0) resulted in the same results you saw.
Running it from the command line Java (build 1.6.0_65-b14-462-11M4609) resulted in both dialogs being displayed and both selected files being output:
FileName 1:BeerSong.javaFileName 2:AudioHijack.mp3h105:bin andrew$
FileName 1:checkConnectTime.shFileName 2:BeerSong.javah105:bin andrew$
(the h105 is my machine name, bin is the directory I was in, andrew is my login name).
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7Personal blog
author and jackaroo
posted 5 years ago
Just went back and checked - I have configured Eclipse to use Java 1.7.0_11.
Bumping it back to 1.6 made it work correctly in Eclipse.
Bumping it back to 1.6 made it work correctly in Eclipse.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7Personal blog
Sheriff
Install Java 7 For Mac
posted 5 years ago- 1
Andrew, have you run the example as is, or on the Event Dispatch thread? The code using EDT might be:
I'm trying to understand whether this is a Swing bug or not.
I'm trying to understand whether this is a Swing bug or not.
Greenhorn
posted 5 years ago
Martin
I tried your posted code. And it seems to clear up the problem. The code runs as it should.
I use the event dispatcher with my own research programs, but it is a bit overwhelming for novice programers so I don't introduce it until the advanced course. It has never been an issue before which is what floored me.
Andrew, just knowing someone else had seen the issue made me feel less alone!
Thank you both for your effort. I am glad I stopped spinning my wheels and asked for advice. Also very glad to know there are knowledgeable javites out there I can ask question to.
Picture me happy!!!
I tried your posted code. And it seems to clear up the problem. The code runs as it should.
I use the event dispatcher with my own research programs, but it is a bit overwhelming for novice programers so I don't introduce it until the advanced course. It has never been an issue before which is what floored me.
Andrew, just knowing someone else had seen the issue made me feel less alone!
Thank you both for your effort. I am glad I stopped spinning my wheels and asked for advice. Also very glad to know there are knowledgeable javites out there I can ask question to.
Picture me happy!!!
Sheriff
posted 5 years ago
Glad to hear the issue is cleared up!
Though I'm not a teacher, I can quite understand that teaching Swing to novice programmers is difficult. I'd suggest just to tell them that they need to put a few lines of code (the SwingUtilities.invokeLater stuff) into their projects as a necessary precondition which will be explained later.
I also think it is better this way. Unlearning bad habits is more difficult than learning the good practices right from the start, in my opinion (an opinion fostered by all that SQL-injection prone code seen in our JDBC forum). But then, perhaps this is why I'm not a teacher...
Though I'm not a teacher, I can quite understand that teaching Swing to novice programmers is difficult. I'd suggest just to tell them that they need to put a few lines of code (the SwingUtilities.invokeLater stuff) into their projects as a necessary precondition which will be explained later.
I also think it is better this way. Unlearning bad habits is more difficult than learning the good practices right from the start, in my opinion (an opinion fostered by all that SQL-injection prone code seen in our JDBC forum). But then, perhaps this is why I'm not a teacher...