Where is the linux jdk directory?

藏色散人
Release: 2023-03-22 09:52:05
Original
8414 people have browsed it

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
Copy after login

or view /etc/profile

vi /etc/profile
Copy after login

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
Copy after login

Where is the linux jdk directory?

Find the link file through the execution file

ls -lrt /usr/bin/java
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template