I am looking for my java home directory. When I tried "whereis java" I got java: /usr/share/java but then when I did ls -lah /usr/share/java I got:
total 12K drwxr-xr-x 2 root root 4.0K Aug 13 04:37 . drwxr-xr-x 100 root root 4.0K Aug 13 04:38 .. -rw-r--r-- 1 root root 2.6K Apr 28 15:43 libintl.jar Could someone please clue me in?
echo $JAVA_HOME?sudo apt-get install openjdk-7-jdk)which java. It will try to locate the commandjavain your PATH. The folder/usr/share/javais a jar repository, but seems strangely empty. If you want to check if you have your java installed, try this:dpkg --get-selections | grep -v deinstall | grep openjdk