Details
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
- is a clone of
-
KARAF-2922 bin/karaf selecting the wrong Java VM on a computer with Java 8 installed
- Closed
- is related to
-
KARAF-2602 Support Java 8
- Resolved