1
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

$ which java
/usr/bin/java

$ ls /usr/libexec/java_home
/usr/libexec/java_home

But when I run some application from the terminal, is says in terminal:

No java installations was detected.
Please go to http://www.java.com/getjava/ and download
1

I had such problem in sbt run having $GREP_OPTIONS=--color=always --ignore-case. Unsetting the environment variable helped.

https://stackoverflow.com/a/47180447/907576

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .