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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 2.4.0, 3.0.2, 4.0.0.M3
    • karaf
    • 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

              jbonofre Jean-Baptiste Onofré
              davidr David Riccitelli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: