I have java installed. However, JAVA_HOME
is empty and I can't find out where it should point to:
$ ls /usr/lib/jvm/default-java
ls: cannot access '/usr/lib/jvm/default-java': No such file or directory
$ ls /usr/bin/java
/usr/bin/java
I have java installed. However, JAVA_HOME
is empty and I can't find out where it should point to:
$ ls /usr/lib/jvm/default-java
ls: cannot access '/usr/lib/jvm/default-java': No such file or directory
$ ls /usr/bin/java
/usr/bin/java
Try
which java | xargs -L1 ls -al
it will show you where java
is really stored on your hard drive as it must a symbolic link
An example of Output:
/usr/bin/java -> /foo/bar/java
In this case java
is in the directory bar