Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2922

bin/karaf selecting the wrong Java VM on a computer with Java 8 installed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.1
    • None
    • None
    • None
    • Mac OS X with Java 8 and Java 7 installed

    Description

      I have a Mac OS X with both Java 8 and Java 7 installed.

      If I run bin/karaf, the script selects the Java 8 VM and things do not work well.

      I made a small change to line 198 of the bin/karaf script, from:

      JAVA_HOME="$(/usr/libexec/java_home)"
      

      to:

      JAVA_HOME="$(/usr/libexec/java_home -v 1.7)"
      

      This way the script selects the Java 7 VM.

      May I suggest to update the script in the repo as well?

      Thanks!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davidr David Riccitelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: