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
- is cloned by
-
KARAF-2921 bin/karaf selecting the wrong Java VM on a computer with Java 8 installed
- Resolved