java 7 on mountain lion

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

August 2012
M T W T F S S
« Jul   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Past Posts

Java/Java EE

JDBC

Other

java 7 on mountain lion

August 19th, 2012 by Jeanne Boyarsky

I upgraded to Mountain Lion and get Java 6 not found when trying to launch Eclipse or Open Office.  I then tried the command lion and get:

Jeanne-Boyarskys-MacBook-Pro:Applications nyjeanne$ java -version Unable to locate a Java Runtime to invoke.Jeanne-Boyarskys-MacBook-Pro:Applications nyjeanne$ java -version Unable to locate a Java Runtime to invoke.

Really?  I spent a good while getting Java 7 installed on Lion.  And now I get to do it again?  Luckily it wasn’t that problem.

I learned

Java 7 was still there under Library/Java/JavaVirtualMachines/.  It just wasn’t in my path anymore so the Mac didn’t recognize it.  After letting Apple install Java 6, everything was fine.  My Eclipse JRE pointed to Java 7 and Open Office launched with Java 6.

Conclusion

While this turned out to be a non-issue, I’m still blogging about it because this wasn’t what I expected to happen.

Comments

Comment from EFH
Posted: June 12, 2015 at 10:40 am

“I then tried the command lion” 🙂

Comment from Jeanne Boyarsky
Posted: June 12, 2015 at 10:46 am

Ernest: I’d fix it, but the typo is funnier 🙂

Write a comment