Results 1 to 4 of 4

Thread: Trying to install STS 3.1.0 in OS X 10.8 - JDK situation...

  1. #1
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Question Trying to install STS 3.1.0 in OS X 10.8 - JDK situation...

    Dear Members

    First experience with Mac, I have OS X 10.8

    When I executed the command java -version the OS prompted me to install the JRE 6, well I ignored or cancelled, because I want use the JDK 7 available by Oracle. Well I have and installed the jdk-7u10-macosx-x64.dmg file. Now java -version returns the expected result

    About the IDE, I have the spring-tool-suite-3.1.0.RELEASE-e4.2-macosx-cocoa-x86_64-installer.dmg file. When I do double click in the file it appear like a device and then I do again double click to really install, but.... the OS again prompted me to install the JRE 6, practically the JDK 7 was ignored.

    Since it is my first time with Mac, what I should do?

    Thanks in advanced
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  2. #2
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default Why don't you install a JDK 6, besides your currently installed JDK 7?

    I can't help you, sorry.

    But, why don't you install a JDK 6, besides your currently installed JDK 7?

    STS in Windows (and maybe in Linux, I don't remember right now) asks you for a JDK path.

    So it's weird that the installer asks you for a JRE.

    However, in OS X, at least from Snow Leopard to Lion (sorry, but I don't have Mountain Lion yet), it never asks for a JDK path, so I presume it expects to find one already installed.

    Maybe it has to be a JDK 6, the last published by Apple.

    A short time ago, only an Apple JDK was allowed. Now Apple no longer supports Java, so you have to install JDKs from Oracle (or OpenJDK), but they say you can install multiple JDKs, and every JDK includes the corresponding JRE.

    Here are some explanations of how to do that, along with other interesting commands: JDK 7 Installation for Mac OS X
    .

    Good luck, and let us know if this solves your problem.

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    I haven't yet installed java 7 (nor do I have mountain lion installed yet) on my mac so I cannot help you with that , but you might get some information on which java versions are installed/active.

    From the commandline execute the following
    Code:
    sudo /usr/libexec/java_home
    You could also check your system preferences and the installed java runtimes (can be found in Application -> Utilities) and enable them.

    Finally it could be that the installer requires JDK 1.6 on a Mac (never tested it) but there is nothing preventing you from installing both JDK 1.6 and JDK 1.7..
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  4. #4
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Use /usr/libexec/java_home with -h for help, -V for a list of JDK installed, -X for a list in plist form.

    Java Preferences is no longer installed by Oracle, they use a Java Option (in System Preferences) that launches an Applet. More or less like in Windows. But it doesn't manage the existing versions very well.

    Another tip: try whereis java that will show /usr/bin/java, then try ls -la /usr/bin/java and you'll find the actual installations of the JDKs

    As an advice, don't set JAVA_HOME to /usr/libexec/java_home, it comes with a lot of issues (that I currently don't remember, but I know that this is not the expected way of using java_home)

    NOTE from Oracle: to install a lower version of the JRE, first uninstall the current version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •