Linux Lite Forums

Full Version: How to Install Java on Linux Lite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
See if you can cd to the jvm directory

Code:
cd /usr/lib/jvm

If not maybe this directory needs created prior??
Code:
mkdir /usr/lib/jvm
then
Code:
mkdir /usr/lib/jvm/oracle_jdk8

Might be worth a try... If not it maybe a permissions issue?
The second and third instructions allowed me to finish Jerry's tutorial (except for the last one which is probably for Jerry's computer?)
Now I am going in circles trying to allow Java in my Firefox or Chromium browsers.
Starting to regret even starting this, all I find including on Java's website includes simlinks and I don't want to screw up this new install any more than I already might have.
Thanks for your help, Wayne.
His last is an output...

What do you get when you run?
Code:
java -version

linuxlite@linuxlite-H170-D3HP:~$ java -version
The program 'java' can be found in the following packages:
* default-jre
* gcj-5-jre-headless
* openjdk-8-jre-headless
* gcj-4.8-jre-headless
* gcj-4.9-jre-headless
* openjdk-9-jre-headless
Try: sudo apt install <selected package>
linuxlite@linuxlite-H170-D3HP:~$
I even did both browser Java stuff on their website and neither browser shows the plugins or will work at Pogo for the wife's game. Crap.

https://www.java.com/en/download/help/en...ubuntu.xml
OK so java isn't installed yet..

So I assume you've downloaded java and its in your download folder if so...
You can open terminal from here...

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

Allow to run then
Code:
touch /etc/profile.d/oraclejdk.sh
Creates the file oraclejdk.sh

The next command will open the newly created file in a text editor (leafpad - similar to notepad)
Code:
leafpad /etc/profile.d/oraclejdk.sh

Leafpad will be blank - copy the next few lines into the document and save..
Its "coded" to ease selecting, just select and copy then paste into leafpad)
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

Once you have the above pasted and saved (file-save) you can close.
then in the terminal window
Code:
source /etc/profile.d/oraclejdk.sh
You're just about there - I've installed Oracle java this way several times Smile I use it for work and once installed it works fine...
I don't use pogo - but have had to "support" it for some friends - Pogo uses a lot of flash.. I checked and was prompted to update my flash (adobe) - prompts for .tar.gz and apt... Don't use yum or rpm (other distro's)..

I'll look to see if I see anything in regards to flash here.. but I assume pretty straight forward Smile
Flash is installed by default..
Once java is installed..
Code:
java -version
should show an output similar to this

dad@TRCD-LLMini:$ java -version
java version "1.8.0_91"
Java™ SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot™ Client VM (build 25.91-b14, mixed mode)

If you need the java control panel after its installed you can run the following in terminal..(it will open a GUI)
Code:
/usr/lib/jvm/oracle_jdk8/bin/jcontrol

This is what I show now.
linuxlite@linuxlite-H170-D3HP:~$ java -version
The program 'java' can be found in the following packages:
* default-jre
* gcj-5-jre-headless
* openjdk-8-jre-headless
* gcj-4.8-jre-headless
* gcj-4.9-jre-headless
* openjdk-9-jre-headless
Try: sudo apt install <selected package>
linuxlite@linuxlite-H170-D3HP:~$
I think this is a lost cause, the last instructions did not go perfectly.
Both Firefox and Chromium are complaining about Flash, Chrome is okay.
The Java for Perfect Pair Solitaire is still MIA. :-)
Tired and will look at this again in morning.
Thanks for your help, I am getting too old (67) for all this brain teasing.
Is there any errors when running the script?
Code:
tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1

Something to confirm from the Java download page https://www.java.com/en/download/linux_manual.jsp

You downloaded the correct version for your OS?
- Java x64 for 64bit LL or Java for 32bit LL
Pages: 1 2 3 4