Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Why is the Mac asking if I want to install Java 6?

 
Author
Posts: 133
10
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've experienced the following behavior on a Mac (newly updated to Mavericks):
1. Without any version of Java installed, I download the latest Eclipse, and try to launch Eclipse. I get a message (which I expect to get) asking me if I want to install Java.
2. I close the message and on my own, I visit java.oracle.com and download/install the JRE for Mac OS.
3. After installing the JRE, I try to launch Eclipse again, and again I get a message asking if I want to install Java. (This time, I'm somewhat surprised.)
4. I close the newest message and on my own, I visit java.oracle.com again and I download/install the JDK for Mac OS.
5. After installing the JDK, I successfully launch Eclipse without getting a message about Java.
6. "Self," I say, "this means that the Mac is checking for Oracle's JDK, and not for the plain old JRE when you try to launch Eclipse."
7. Later in the week I visit developers.android.com and I download the ADT Bundle which includes a customized version of Eclipse.
8. After installing the customized version of Eclipse, I try to launch the customized version and (with the JDK still installed) I get a message asking me if I want to install Java. When I dismiss the message, Eclipse fails to launch. (And at this point I'm really confused.)
9. I try to launch the customized Eclipse again, and this time I accept the suggestion to install Java, which it does. (This is Apple's Java 6, I thing.)
10. After following the suggestion to install Java, the customized Eclipse runs.

I know how to check for /Libraries/Java ... and /System/Libraries/Java ... and I don't think I'm missing any details about which versions of Java are, or are not, installed. Can anyone explain this behavior to me?
Thanks.
 
author & internet detective
Posts: 39435
768
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basic question: have you checked your PATH? Which version of Java is in it? Also is your JAVA_HOME set to anything?
 
Do not threaten THIS beaver! Not even with this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!