Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to Install JAVA or JDK on Linux | How to Setup different Java Versions on Linux || Java on Linux
ChannelO-G-HDescription from the creator
#JavaSetupOnLinux #JavaOnLinux #JavaJdkInstallationOnLinux #opengyanhouse
This video is about java or jdk setup on Linux server.
If you want to setup or install java in Linux so be with me in this video :
Step 1 :-
Download java pkg from oracle website.
oracle.com/in/java/technologies/javase/javase-j…
You have to create a user account for package downloading.
As per your requirement download java pkg/rpm for operating system. Please check OS configuration before downloading the 32 or 64 bit package.
Step 2 :-
Upload or copy this package into the linux server.
Step 3 :-
If you have copied rpm, then you need to execute below command
rpm -ivh jdk-8xxxxxxxxxxxx.rpm
If you have copied tar.gz package, then you have to execute below command
tar -zxvf jdk-8xxxxxxxxxxxx.tar.gz
or
tar -xvf jdk-8xxxxxxxxxxxx.tar.gz
Once you are done with it. So installation is done.
Step 4 :-
Set path for java home. Please update /etc/profile or /root/.bashrc file with below lines
Make sure you have installed Java already on linux
Now
#vi ~/.bashrc OR vi ~/.bash_profile
add lines :
export JAVA_HOME=/home/opengyanhouse/javapkg/jdkxxxx
export PATH=$JAVA_HOME/bin:$PATH
save the file.
execute source command to make this changes effected.
#source ~/.bashrc OR source ~/.bash_profile
Execute echo to print the value
#echo $JAVA_HOME
Output should print the java home path, where java bin is exist
Step 5 :-
If you have multiple java version in single operating system so please use below command and set priority of use
#update-alternatives --config java
This command will list out all the installed java version.
Now installation is done and you can use the java. :)
===============================================================================
how to setup java
how to setup jdk
how to install java8
how to setup jdk8
java installation in linux
jdk installation on linux
multiple java on single os
multiple java version on single linux server
This video is about java or jdk setup on Linux server.
If you want to setup or install java in Linux so be with me in this video :
Step 1 :-
Download java pkg from oracle website.
oracle.com/in/java/technologies/javase/javase-j…
You have to create a user account for package downloading.
As per your requirement download java pkg/rpm for operating system. Please check OS configuration before downloading the 32 or 64 bit package.
Step 2 :-
Upload or copy this package into the linux server.
Step 3 :-
If you have copied rpm, then you need to execute below command
rpm -ivh jdk-8xxxxxxxxxxxx.rpm
If you have copied tar.gz package, then you have to execute below command
tar -zxvf jdk-8xxxxxxxxxxxx.tar.gz
or
tar -xvf jdk-8xxxxxxxxxxxx.tar.gz
Once you are done with it. So installation is done.
Step 4 :-
Set path for java home. Please update /etc/profile or /root/.bashrc file with below lines
Make sure you have installed Java already on linux
Now
#vi ~/.bashrc OR vi ~/.bash_profile
add lines :
export JAVA_HOME=/home/opengyanhouse/javapkg/jdkxxxx
export PATH=$JAVA_HOME/bin:$PATH
save the file.
execute source command to make this changes effected.
#source ~/.bashrc OR source ~/.bash_profile
Execute echo to print the value
#echo $JAVA_HOME
Output should print the java home path, where java bin is exist
Step 5 :-
If you have multiple java version in single operating system so please use below command and set priority of use
#update-alternatives --config java
This command will list out all the installed java version.
Now installation is done and you can use the java. :)
===============================================================================
how to setup java
how to setup jdk
how to install java8
how to setup jdk8
java installation in linux
jdk installation on linux
multiple java on single os
multiple java version on single linux server
About this tutorial
O-G-H published this 3:55 video tutorial on July 4, 2020. It has been watched 2,142 times on YouTube.
- Channel
- O-G-H
- Category
- People & Blogs
- Duration
- 3:55
- Published
- July 4, 2020
- Views
- 2,142
- Likes
- 21
Tags
Share
This tutorial in other languages
- FRComment installer Java sur Linux ou JDK | Comment installer différentes versions Java sur Linux || Java sur Linux
- ESCómo instalar Java JDK o en Linux | ¿Cómo configurar diferentes versiones de Java en Linux || Java en Linux
- PTComo instalar o JAVA ou JDK no Linux | Como configurar diferentes versões Java no Linux || Java no Linux
- ITCome installare Java o JDK su Linux | Come configurare diverse versioni di Java su Linux || Java su Linux
- DESo installieren Sie JAVA oder JDK auf Linux | Wie Setup verschiedene Java-Versionen auf Linux || Java auf Linux
- NLHoe te installeren JAVA of JDK op Linux | Hoe je verschillende Java-versies op Linux || Java op Linux
- RUКак установить JAVA или JDK на Linux | Как установить различные Java версии на Linux || Java на Linux
- PLJak zainstalować Java lub JDK Linux | Jak skonfigurować różne wersje Java na Linux || Java w systemie Linux
- JALinux上でJAVAやJDKをインストールする方法| Linux上でどのようにセットアップに異なるJavaバージョン|| Linux上のJava
- ARكيفية تثبيت JAVA أو JDK على لينكس | كيفية إعداد مختلف إصدارات جافا على لينكس || جافا على لينكس
- HIजावा या JDK स्थापित करने के लिए कैसे लिनक्स पर | कैसे लिनक्स पर सेटअप अलग जावा संस्करण के लिए || लिनक्स पर जावा
- IDCara Instal JAVA atau JDK di Linux | Cara Setup yang berbeda Versi Java di Linux || Java di Linux