I have been told that in a Linux machine java along with jdk has been installed in /usr/java path. But when I go to /usr/java/ i could so many files along with folder named bin,JRE. I want to know where is jdk installed here? Is bin folder itself is jdk?
My ls
output for openjdk7 looks like this:
ASSEMBLY_EXCEPTION docs jre man THIRD_PARTY_README
bin include lib src.zip
The jre
folder contains the JRE, the other files are part of the JDK, and not necessary for running Java applications which need only a JRE (eg the javac
compiler in bin
).
打开终端并输入“ which java”,这将返回JDK安装路径
I guess you just installed the JDK under /usr/java. Try run ls /usr/java/bin
, if java
and javac
is in /usr/java/bin, we can conclude that the /usr/java folder IS the JDK folder itself.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.