Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: oracle java 1.7 wasn't found
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oracle java 1.7 wasn't found



I had a similar experience. After installing it, at first 'java -version' reported 1.6.0.

I then did a variety of things, and one of them fixed it -- but I don't know which one. I didn't test systematically.

I switched off the Java 6s in the Java preferences, and switched them on again, I opened a new terminal window, and then I restarted Terminal.app altogether.

And then at some point, it worked.

I also noticed that /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK still pointed to 1.6 after the 1.7 installation, and I changed that manually. But if I recall correctly, the 'java -version' changed in the terminal before that.

Sorry, not much help, other than to say: It's not only on your machine.

Michael

On 28 Apr 2012, at 04:51, Dmitry Markman wrote:

Hi
I just installed oracle 1.7u4 package

as far as I can see it was installed in
/Library/Java/JavaVirtualMachines/1.7.0.jdk folder

I was following instructions from 

and dragged Java SE 7 in the top position in java Preferences applications
opened Terminal 
but  java -version 
returned 
java version "1.6.0_31"

if I call java from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java directly
I can see right 1.7 version


I rebooted, but no success

so what did I do wrong?

thanks in advance

Dmitry Markman
Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >oracle java 1.7 wasn't found (From: Dmitry Markman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.