Where can I find the Java SDK in Linux after installing it?

后端 未结 14 1740
野趣味
野趣味 2020-12-02 03:59

I installed JDK using apt-get install but I don\'t know where my jdk folder is. I need to set the path for that. Does any one have a clue on the location?

14条回答
  •  醉酒成梦
    2020-12-02 04:22

    Use find to located it. It should be under /usr somewhere:

    find /usr -name java
    

    When running the command, if there are too many "Permission denied" message obfuscating the actual found results then, simply redirect stderr to /dev/null

    find /usr -name java 2> /dev/null
    

提交回复
热议问题