Home  >  Article  >  Operation and Maintenance  >  Where is the linux jdk directory?

Where is the linux jdk directory?

藏色散人
藏色散人Original
2023-03-22 09:52:058406browse

The linux jdk directory is in the bin directory. The specific search method is: 1. Find the execution directory of javad through the "whereis java" command; 2. Find the link file through the execution file; 3. Through "ls -lrt / etc/alternatives/java" command to find the installation directory.

Where is the linux jdk directory?

#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

Where is the linux jdk directory?

linux view jdk installation directory

1. jdk installed by installation package

If you are installing the current installation package, you will generally configure the environment variables

echo $JAVA_HOME

or view /etc/profile

vi /etc/profile

2. yum installation View the installation directory

I am lazy, so I installed it using yum.

Where is the linux jdk directory?

## First find the execution directory of javad

whereis java

Where is the linux jdk directory?

Find the link file through the execution file

ls -lrt /usr/bin/java

Where is the linux jdk directory?

cd /etc/alternatives/ found that it is not the source file, continue to find it through the link file

Where is the linux jdk directory?

ls -lrt /etc/alternatives/java

Where is the linux jdk directory?

 cd /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64-debug/jre/bin

Where is the linux jdk directory?

ok, the installation directory has been found.

Related recommendations: "

Linux Video Tutorial"

The above is the detailed content of Where is the linux jdk directory?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn