Where is the Java SDK folder in my computer? Ubuntu 12.04

后端 未结 11 2126
深忆病人
深忆病人 2020-11-28 01:26

I know it\'s installed because when I type:

$java -version

I get:

OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.         


        
11条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 02:14

    Please use this command:

    readlink -f $(which java)
    

    It works for me with Ubuntu gnome.

    On my computer the result is:

    /usr/lib/jvm/java-7-oracle/jre/bin/java

    Regards.

提交回复
热议问题