Skip to content

Commit ed246de

Browse files
committed
Fix using which java to find
1 parent d580a37 commit ed246de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jvm.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ function findjvm()
4242
javapath = readlink(javapath)
4343
end
4444
javapath = dirname(javapath)
45-
javapath = match(r"(.*)(/jre)+(/bin)+",javapath)[1]
45+
javapath = match(r"(.*)((/jre/bin)|(/bin))+",javapath)[1]
4646
push!(javahomes,javapath)
4747
catch err
48-
@info "JavaCall could not determine javapath from `which java`"
48+
@debug "JavaCall could not determine javapath from `which java`" err
4949
end
5050
end
5151
end

0 commit comments

Comments
 (0)