There are two standard types of installation available are JDK and JRE. JDK (Java Development Kit) provides the ability to develop new Java application, which includes Java compiler. JRE (Java Runtime Environment) provides the runtime environment for any Java application with applets. The Java developers required to install JDK and JRE both on their system to create new Java Applications.
- Read this => Install Java 8 on Debian
- Read this => Install Java 9 on Ubuntu & Linux Mint
Use this tutorial to Install Java 8 on Ubuntu 18.04, 17.10, 16.04, 14.04 LTS and LinuxMint 18, 17 using PPA. Follow the below steps to Install Java on Ubuntu command line.
Step 1 – Install Java 8 on Ubuntu
You need to enable additional repository to your system to install Java 8 on Ubuntu VPS. After that install Oracle Java 8 on an Ubuntu system using apt-get. This repository contains package named oracle-java8-installer, Which is not an actual Java package. Instead of that, this package contains a script to install Java on Ubuntu.
Run below commands to install Java 8 on Ubuntu and LinuxMint.
Step 2 – Verify Java Inatallation
The apt repository also provides package oracle-java8-set-default to set Java 8 as your default Java version. This package will be installed along with Java installation. To make sure run below command.
After successfully installing Oracle Java 8 using the above steps, Let’s verify the installed version using the following command.
Step 3 – Setup JAVA_HOME and JRE_HOME Variable
After installing Java on Linux system, You must have to set JAVA_HOME and JRE_HOMEenvironment variables. Which is used by many Java applications to find Java libraries during runtime. You can set these variables in /etc/environment file using the following command.
'OS > Linux' 카테고리의 다른 글
CentOS 7 / YUM 사용법 (0) | 2018.05.26 |
---|---|
리눅스 방화벽 firewalld (CentOS 7) (0) | 2018.05.25 |
How to install Google Chrome web browser on Ubuntu 18.04 Bionic Beaver Linux (0) | 2018.05.25 |
Empty kernel directory but kernel-headers are installed (0) | 2018.05.24 |
Centos 7 NTFS 디스크 마운트 (0) | 2018.05.24 |