See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install Java on Linux Lite
#1
Install Java on Linux Lite - this tutorial will show you how to install Oracle's Java on Linux Lite. You must uninstall the openjdk java on Linux Lite first to have your system recognize and use Oracle's Java. Go into Synaptic package manager and remove packages labeled as 'openjdk' there will be only 2. An example of why people may want to use Oracle's Java over OpenJdk's Java is that they find Minecraft will only run under Oracle's or runs better under Oracle's Java.

NB: Best practice is to use only one type of Java on your system at a time. Yes, you can use symlinks, but this OS is for new folk to linux so we're keeping this very simple.

1. Download Java: 32bit or 64bit depending on your system - https://www.java.com/en/download/linux_manual.jsp

[Image: DHRxzVl.png]

2. Open a terminal where the download is and enter:

Code:
sudo su

Code:
mkdir /usr/lib/jvm/oracle_jdk8

Code:
tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1

Code:
touch /etc/profile.d/oraclejdk.sh

Code:
leafpad /etc/profile.d/oraclejdk.sh

copy and paste the following into the file, then save and close it:

Code:
export J2SDKDIR=/usr/lib/jvm/oracle_jdk8
export J2REDIR=/usr/lib/jvm/oracle_jdk8/jre
export PATH=$PATH:/usr/lib/jvm/oracle_jdk8/bin:/usr/lib/jvm/oracle_jdk8/db/bin:/usr/lib/jvm/oracle_jdk8/jre/bin
export JAVA_HOME=/usr/lib/jvm/oracle_jdk8
export DERBY_HOME=/usr/lib/jvm/oracle_jdk8/db

In the same terminal type, exit.

Now enter:

Code:
source /etc/profile.d/oraclejdk.sh

Do:

Code:
java -version

in a terminal to confirm you have Oracle's Java installed.

Code:
jerry@jerry-VirtualBox:~$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) Server VM (build 25.66-b17, mixed mode)
jerry@jerry-VirtualBox:~$
Reply


Messages In This Thread
How to Install Java on Linux Lite - by Valtam - 12-25-2015, 04:20 AM
Re: How to Install Java on Linux Lite - by Valtam - 03-30-2016, 09:08 PM
Re: How to Install Java on Linux Lite - by Valtam - 03-31-2016, 05:52 AM
Re: How to Install Java on Linux Lite - by avj - 03-25-2016, 05:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)