How To Install Java with Apt install on Ubuntu 16.04

Опубликовано: 15 Октябрь 2024
на канале: Vacnic IT Solution
565
1

Installing Java
How to Install Oracle Java 8 / 9 in Ubuntu 16.04
How To Install Java with Apt-Get on Ubuntu 16.04
How to Install Java on Ubuntu 16.04
Install Java on Ubuntu 16.04


How to install java on ubuntu 16.04

Download java From this URL
http://www.oracle.com/technetwork/jav...

Extract java tar

#tar -xvzf jdk-8u131-linux-x64.tar.gz


don’t need to download do one thing
open terminal type
#java -version

if its installed so it will give you version

if its java not installed on you computer so it will give you all
command to install java latest version

like

apt install default-jre gcj-5-jre-headless openjdk-8-jre-headless gcj-4.8-jre-headless
its for java 1.8

it will give you for java 9 so you need to install only java 8 if you need 9 you can install


how to set java home path

copy java path where its installed its by default installed in /usr/lib/java/bin copy this link
and

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin

now check path of java


#echo $JAVA_HOME


HOW TO INSTALL JAVA JRE JDK IN UBUNTU 16.04
https://vacnic.com
  / vacnicitsolution  
   / vacnicitsolution  
  / vacnics  
  / vacnicitsolution  
  / vacnicitsolution  
https://www.tumblr.com/blog/vacnicits...
  / 585890232759687161  
  / vacnicitsolution  
https://vacnic.wordpress.com/
https://myspace.com/vacnicitsolution
https://disqus.com/by/vacnicpvtltd/
  / vacnicsocia