<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install JAVA 8 on Linux Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-java-8-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 11 Nov 2018 20:12:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Installation of the 64-bit JDK on any Linux Platforms</title>
		<link>https://www.osradar.com/installation-of-the-64-bit-jdk-on-any-linux-platforms/</link>
					<comments>https://www.osradar.com/installation-of-the-64-bit-jdk-on-any-linux-platforms/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sun, 11 Nov 2018 20:12:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Install JAVA 8 on Linux]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7194</guid>

					<description><![CDATA[<p>Let me show you in this article how to do the Installation of the 64-bit JDK on any Linux Platforms, this installation was tested on my local virtual machime, but i assume that  should be working on all kind of Linux Systems, 1-Download the installation tarball File: Please  endure that  Wget packahe has been installed  [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/installation-of-the-64-bit-jdk-on-any-linux-platforms/">Installation of the 64-bit JDK on any Linux Platforms</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Let me show you in this article how to do the Installation of the 64-bit JDK on any Linux Platforms, this installation was tested on my local virtual machime, but i assume that  should be working on all kind of Linux Systems,</p>
<h3><strong>1-Download the installation tarball File:</strong></h3>
<p>Please  endure that  Wget packahe has been installed  , else yu  may Download  manually the tarball directly from the<a href="https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"> Oracle website </a></p>
<pre class="">cd /opt

 wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz"

</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7195" src="https://www.osradar.com/wp-content/uploads/2018/11/Oracle1.png" alt="" width="1646" height="412" srcset="https://www.osradar.com/wp-content/uploads/2018/11/Oracle1.png 1646w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle1-300x75.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle1-768x192.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle1-1024x256.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle1-696x174.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle1-1068x267.png 1068w" sizes="(max-width: 1646px) 100vw, 1646px" /></p>
<h3><strong>2-extract the </strong>compssed<strong> file</strong></h3>
<pre class="">tar xzf jdk-8u191-linux-x64.tar.gz</pre>
<h3><strong>3- Install Java 8 with Alternatives</strong></h3>
<p>The alternatives command is used for maintained symbolic links. This command used to creates, removes, maintains and displays information about the symbolic links comprising the alternatives system.</p>
<pre class="">cd /opt/jdk1.8.0_191/
alternatives --install /usr/bin/java java /opt/jdk1.8.0_191/bin/java 2
alternatives --config java</pre>
<p>its  showing 1 program which provide &#8216;java&#8217;. because   only this last one release Command<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<img loading="lazy" class="alignnone size-full wp-image-7198" src="https://www.osradar.com/wp-content/uploads/2018/11/Oracle2.png" alt="" width="767" height="210" srcset="https://www.osradar.com/wp-content/uploads/2018/11/Oracle2.png 767w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle2-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/Oracle2-696x191.png 696w" sizes="(max-width: 767px) 100vw, 767px" /></p>
<p>At this point JAVA 8 has been successfully installed on mysystem. We  recommend to setup javac and jar commands path using alternatives</p>
<pre class="">alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_191/bin/jar 2
alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_191/bin/javac 2
alternatives --set jar /opt/jdk1.8.0_191/bin/jar
alternatives --set javac /opt/jdk1.8.0_191/bin/javac</pre>
<h3><strong>4 – Check Installed Java Version</strong></h3>
<p>Java and javac binaries are available under PATH environment variable. You can use them from anywhere in your system. Let’s check the installed version of Java runtime environment (JRE) on your system by executing the following command.</p>
<p>java -version</p>
<pre class="">[root@osradar jdk1.8.0_191]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
[root@osradar jdk1.8.0_191]#</pre>
<h3><strong>5 – Setup Java Environment Variables</strong></h3>
<p>Most of Java based application’s uses environment variables to work. Set the Java environment variables usingthe  commands</p>
<p>Set the PATH, JAVA_HOME, and JRE_HOME  environment variables.</p>
<pre class="">export JAVA_HOME=/opt/jdk1.8.0_191
export JRE_HOME=/opt/jdk1.8.0_191/jre
export PATH=$PATH:/opt/jdk1.8.0_191/bin:/opt/jdk1.8.0_191/jre/bin</pre>
<p>Also add the above commands to /etc/bashrc file to auto set environment variables on the system boot.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/installation-of-the-64-bit-jdk-on-any-linux-platforms/">Installation of the 64-bit JDK on any Linux Platforms</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/installation-of-the-64-bit-jdk-on-any-linux-platforms/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
