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

后端 未结 11 2091
深忆病人
深忆病人 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 01:57

    you can simply write the following command in the terminal of your linux system and get the java path :- echo $JAVA_HOME

    0 讨论(0)
  • 2020-11-28 01:58
    $whereis java
    java: /usr/bin/java /usr/bin/X11/java /usr/share/java     /usr/share/man/man1/java.1.gz
    $cd /usr/bin
    $ls -l java
    lrwxrwxrwx 1 root root 22 Apr 15  2014 java -> /etc/alternatives/java
    $ls -l /etc/alternatives/java
    lrwxrwxrwx 1 root root 39 Apr 15  2014 /etc/alternatives/java ->     /usr/lib/jvm/java-7-oracle/jre/bin/java
    

    So,JDK's real location is /usr/lib/jvm/java-7-oracle/

    0 讨论(0)
  • 2020-11-28 02:02

    Location of JRE in Ubuntu:

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

    0 讨论(0)
  • 2020-11-28 02:04

    I found the solution to this with path name: /usr/lib/jvm/java-8-oracle

    I'm on mint 18.1

    0 讨论(0)
  • 2020-11-28 02:06

    $ whereis java

    java: /usr/bin/java /usr/lib/java /usr/bin/X11/java /usr/share/java /usr/share/man/man1/java.1.gz

    0 讨论(0)
  • 2020-11-28 02:06

    For me, on Ubuntu, the various versions of JDK were in /usr/lib/jvm.

    0 讨论(0)
提交回复
热议问题