Home  >  Article  >  System Tutorial  >  CentOS installation JSK and CentOS installation JDK

CentOS installation JSK and CentOS installation JDK

WBOY
WBOYforward
2024-02-11 10:57:07517browse

Preface

php editor Yuzai brings you a simple tutorial on installing JSK and JDK in CentOS system. JSK and JDK are essential components in the Java development environment. Installing them can provide developers with a convenient development environment. This article will introduce in detail how to install JSK and JDK on CentOS system, allowing you to easily enter the world of Java development. Whether you are a beginner or an experienced developer, this article can help you. Let’s take a look at the specific installation steps!

CentOS 安装 JSK 及 CentOS 安装 JDK

CentOS Installation JDK

We need to update the system package list, which can be achieved through the following command:

```shell

sudo yum update

```

We can use the following command to install the JDK:

sudo yum install java-devel

Installation After completion, you can use the following command to verify whether the JDK is installed successfully:

java -version

If the Java version information is output, the JDK is installed successfully.

CentOS Installation of JSK

The installation of JSK is relatively complicated. We need to download the installation package from the official website and install it manually. We need to download the JSK installation package from the official website and unzip it. In the specified directory, we need to edit the JSK configuration file, specify the JDK installation path and some other parameters. We can start JSK through the following command:

./jsw/bin/wrapper -c ./ conf/wrapper.conf

If everything goes well, JSK will successfully start and run our Java application.

Share a little LINUX knowledge

In LINUX, we can use the `grep` command to filter the output results. If we want to find lines containing a specific string in a file, we can use The following command:

grep "search_string" file.txt

This command will output all lines containing `search_string` in the file.

The above is the detailed content of CentOS installation JSK and CentOS installation JDK. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:xiaosiseo.com. If there is any infringement, please contact admin@php.cn delete