search
HomeJavaJavagetting StartedHow to install jdk1.8 under linux system

How to install jdk1.8 under linux system

Nov 25, 2019 pm 05:02 PM
jdklinux

How to install jdk1.8 under linux system

1. First download jdk1.8 from the official website

2. jdk configuration

Edit the profile in the etc directory and enter sudo vim etc/profile

Recommended related video tutorials: java course

How to install jdk1.8 under linux system

Press Enter to get the following picture:

How to install jdk1.8 under linux system

3. Press i or insert to insert the following content at the end of the file

Note that you only need to change the path of Javah_home

#Java Env
export JAVA_HOME=/usr/jdk1.8.0_121
export CLASSPATH=.:JAVAHOME/lib/dt.jar:JAVA_HOME/lib/dt.jar:JAVA 
H
 OME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export PATH=PATH:PATH:PATH:JAVA_HOME/bin

Get the following picture:

How to install jdk1.8 under linux system

##After inserting, press Esc to exit editing, enter: wq and press Enter

How to install jdk1.8 under linux system

4. Finally enter

Java -version to check whether it is configured properly

How to install jdk1.8 under linux system

Complete!

Recommended related articles:

java entry program

The above is the detailed content of How to install jdk1.8 under linux system. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor