Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

To open you need a Java SE 6 runtime. Why, when I have 1.7 installed?

PREFACE: I've read most of the posts on here that discuss this issue but none have provided a real answer to this.


I'm on Moutain Lion w/ all the latest updates from the App Store.


I've installed Oracle's latest Java JDK (7u11) because of the recent security issue. When I go to Terminal and type in "java -version", it's the latest version of Oracle's 1.7. I don't have Apple's 1.6 version of Java on my system. I've verified that by checking in the appropriate System folder for the 1.6 JRE & JDK.


So all seems to be fine so far and per Apple's recommendation, I'm using Oracle's latest version of Java.


So when I go to run Charles debugging proxy, which is a Java desktop app, I get the following message in a dialog:


"To open "Charles,” you need a Java SE 6 runtime. Would you like to install one now?"


If I have the latest Oracle Java version installed, why am I being prompted to install Apple's 1.6 version?


I've had this prompt in the past and went through the install before. Contrary to what another poster in another thread says, choosing install at the prompt ignores the fact that 1.7 is installed and does in fact install Apple Java 1.6. It's an outdated version of Java which I don't want on my system.


Why do I need to install Apple's 1.6 when Oracle's Java 1.7 latest is already there?


Rey

Posted on Jan 14, 2013 11:27 AM

Reply
59 replies

Jan 19, 2013 7:11 AM in response to Barney-15E

Hi Barney,


From this Apple KB: http://support.apple.com/kb/HT5493


"This update uninstalls the Apple-provided Java applet plug-in from all web browsers. To use applets on a web page, click on the region labeled "Missing plug-in" to go download the latest version of the Java applet plug-in from Oracle."


I interpret that as directing users to install Oracle's Java JRE. And even if I'm misinterpreting it, the fact remains that the only JRE/JDK I have installed is Oracle's and I'm still being prompted by OSX to install the Apple version.


I just don't want this discussion to go off-topic as to whether Apple recommends it or not because that's not the issue at hand.


Rey...

Jan 25, 2013 7:06 PM in response to Rey Bango

Rey Bango wrote:


If I have the latest Oracle Java version installed, why am I being prompted to install Apple's 1.6 version?

It's obvious to me that the developer of "Charles" compiled it as a Java 6 app and limited it's use with future Java versions. I might be only because it hasn't been tested with java 7 yet, or it may have to be recompiled using the Java 7 JDK, but only the developer can tell you that.


I appreciate that you might not like to have an older version of Java on your computer. Even Oracle recommends against it, but does not provide a means of removing it once it's there. But this is the same problem that users of older Mac apps (e.g. Eudora) have, in that it won't run on newer versions of OS X, so they either find a new app or don't upgrade the OS.

Jan 26, 2013 6:58 AM in response to MadMacs0

Thank you MadMacs0. I appreciate the thoughtful reply.


One thing to note is that I don't believe this issue is isolated to Charles (or a specific app). Let me explain.


When I first got my MBA, I hit terminal and typed in "java -version" to see which version was installed. I immediately received the same dialog I mentioned earlier to install Apple's version of Java. So I downloaded Oracle's JRE so I could use the latest Java version. Even after installing this, I still received the dialog asking to install Apple's version. Only after I installed Oracle's JDK did I stop receiving the dialog when typing in "java -version" into the terminal.


Despite this, when launching the Java-based Charles app, I again received the dialog to install Apple's version.


I don't think it's an issue with running in a specific version of Java as much as I feel there's a system linking issue somewhere. Like if a symlink is missing that would tell the Java apps where to find the JRE. I'm not versed enough in OSX or *nix to find that.


Either way, I'm already having conversations with the developer of Charles and we're testing a version that seems to resolve this by packaging the JRE within the app directly. Obviously, this would solve my specific issue and I've already removed all versions of Java from my system. But for the benefit of the community, I'd like to pin this down so that others don't need to go through the same headaches I've had.

Jan 26, 2013 5:15 PM in response to Rey Bango

Rey Bango wrote:


When I first got my MBA, I hit terminal and typed in "java -version" to see which version was installed. I immediately received the same dialog I mentioned earlier to install Apple's version of Java. So I downloaded Oracle's JRE so I could use the latest Java version. Even after installing this, I still received the dialog asking to install Apple's version. Only after I installed Oracle's JDK did I stop receiving the dialog when typing in "java -version" into the terminal.

I think there is a simple explanation for this. The Oracle JRE does not replace the command line executable /usr/bin/java/, so it's still the one that came with OS X. It only knows the location of the Apple installed Java, which in this case should be Java 6, but not finding anything there, it continues to prompt you to install it, as it knows nothing about the other location that Oracle uses. By installing the JDK you replaced /usr/bin/java/ which only knows the location of the Oracle code and so reports it as being updated.


I know other users who have reported being able to run a some desktop Java apps with only the Oracle JRE version installed. There are many others who found themselves in the same position you were with an app that would not work with Java 7.

Despite this, when launching the Java-based Charles app, I again received the dialog to install Apple's version.

Which is understandable if it is not compatible with Java 7.


I guess I'm still of the opinion that installing J2SE 1.6.0_37 would allow you to use Charles without causing any undo security issues, if that were possible.

Sep 30, 2013 6:08 AM in response to Rey Bango

I tried some and found only need to modiy JDK 1.7's Info.plist a little bit.

It looks like Oracle did not add engough JVMCapabilities for it.

so you can try to change

<key>JVMCapabilities</key>

<array>

<string>CommandLine</string>

</array>


to


<key>JVMCapabilities</key>

<array>

<string>JNI</string>

<string>BundledApp</string>

<string>WebStart</string>

<string>Applets</string>

<string>CommandLine</string>

</array>

Oct 24, 2013 6:22 PM in response to Rey Bango

I too keep getting this notification or whatever is called several times a day and would like it to stop.


I installed Oracle's Java 7 a few days ago because of a system update (I think it was maybe it was a Safari update?!?) that reported Java had been disabled for security reasons. As far as I know, I dont use Java but I installed it anyway from Oracle's site. At that time I was still running Lion.


Then I upgraded to Mavericks and ever since I've been getting this message. In an attempt to stop the message I uninstalled Java using Oracle's instructions (which were to delete a Java app from the applications folder).


I'm still getting the message (it popped up just now).


"To open "java", you need a Java SE 6 runtime. Would you like to install one now?"


I don't want to open java but apparently my machine thinks I do.

Oct 24, 2013 10:45 PM in response to YoCraig

"To open "java", you need a Java SE 6 runtime. Would you like to install one now?"

I don't want to open java but apparently my machine thinks I do.

There's nothing in the message that's telling you to OPEN it. To save yourself a lot of grief, INSTALL the runtime environment component. That doesn't hurt anything on your machine and will eliminate you getting the message. FWIW, I have both SE 6 and 7 JRE's installed.

To open you need a Java SE 6 runtime. Why, when I have 1.7 installed?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.