You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How to Install Java on Linux Lite

Author (Read 34309 times)

0 Members and 10 Guests are viewing this topic.

Re: How to Install Java on Linux Lite
« Reply #37 on: August 31, 2016, 02:18:59 PM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
On both my LL 2.8 and LL 3.0 my installed Flash is Ver. 11.2.202.632.
Go to Adobe, select APT for Ubuntu and download now, get "the address wasn't understood, Firefox doesn’t know how to open this address, because one of the following protocols (apt) isn’t associated with any program or is not allowed in this context.
 You might need to install other software to open this address.

And in the Java Control Panel the enable Java content in the browser is enabled.
The Java version appears to be a Server VM.
linuxlite@linuxlite-H170-D3HP:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
linuxlite@linuxlite-H170-D3HP:~$ /usr/lib/jvm/oracle_jdk8/bin/jcontrol
linuxlite@linuxlite-H170-D3HP:~$ /usr/lib/jvm/oracle_jdk8/bin/jcontrol
linuxlite@linuxlite-H170-D3HP:~$
« Last Edit: August 31, 2016, 02:24:54 PM by waynebob »
 

Re: How to Install Java on Linux Lite
« Reply #36 on: August 31, 2016, 11:50:49 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
I'm not in front of my LL box..
But for the Flash you want the APT not Yum.. If I recall if once APT file is downloaded it install easily; similarly to how Synaptic does..

For enabling in the browser, I believe in the Java Control panel (see the path I listed in a previous thread) under Security there is a check box to enable in the browser...


LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #35 on: August 31, 2016, 09:38:03 AM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
Still don't have Java working in Chrome, Firefox or Chromium. Tried the Java website to enable FF and Chrome but didn't work.
Chrome no longer supports NPAPI (Java) and will no longer support Flash in September.
Chromium needs Flash update and Java is a no go.
Firefox needs Flash update (YUM or APT) and Java is a no go.
I was searching for a "best linux for Java and Flash" and downloaded Ubuntu Gamepack and PlayLinux thinking maybe they would be set up for online gaming. Still fooling around in Virtual Box, no luck yet.
Thanks for your help, Wayne.
P.S. I installed Teamviewer
 

Re: How to Install Java on Linux Lite
« Reply #34 on: August 31, 2016, 08:23:20 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Good to see you got it!!!! :)

The tar command will extract the compressed file..

Shortened explanation of the command tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1
tar -zxvf extracts the compressed jre file (more so any file starting with jre-); into the directory../oracle_jdk8 ..


LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #33 on: August 29, 2016, 11:36:02 AM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
Crap, reading this do I have to unzip the downloaded file first. I am in the downloads folder but the file is still compressed.
Unzipped the file and it now shows. Tried the next step and got a very long message that it did not work. Should I put it here, it is very long?
Maybe my previous missteps have borked the install.
Redid Jerry's instructions and it worked now. I didn't even think to unzip the downloaded file, rookie mistake.
Now just have to get it working in Firefox and Chromium.
I see Chrome is going to stop using Flash in September so more fun ahead. :-)

Here is what I have now, looks like it worked.linuxlite@linuxlite-H170-D3HP:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
linuxlite@linuxlite-H170-D3HP:~$
« Last Edit: August 29, 2016, 12:01:47 PM by waynebob »
 

Re: How to Install Java on Linux Lite
« Reply #32 on: August 29, 2016, 11:14:12 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Given up LOL; naw you're almost there - just little things, no show stoppers... :)
Just to confirm, your version of Linux lite is also 64bit?

So the error says there's no jre file.. It needs the correct location - you can cd to the full path or
Open Thunar (file manager) to the location of the downloaded JRE file. If its in your downloads folder open download.
Then right click (a blank area) and I believe its open terminal from here - you want terminal to be pointing to your downloads..

If you open terminal and its at "~" (aka your home folder - /home/user) You can cd to Downloads,
Code: [Select]
cd Downloads
The above is the same as the command below - assuming your username is linuxlite
Code: [Select]
cd /home/linuxlite/Downloads
You can confirm you are in the correct directory by typing
Code: [Select]
lsThis will list the items of the directory (folder) you're currently in (Downloads in this case) you should see the jre file listed - if not cd to the correct directory..

Then you can run the tar command..
Code: [Select]
tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1
If you have already done the touch and leafpad commands those should be fine as is..
I would finish with the
Code: [Select]
source /etc/profile.d/oraclejdk.sh

« Last Edit: August 29, 2016, 11:16:33 AM by firenice03 »
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #31 on: August 29, 2016, 08:56:36 AM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
 Good Morning, haven't given up on me yet eh? ;-) Yes I downloaded the 64 bit  that Jerry recommended. Here is what I get when running your script.
linuxlite@linuxlite-H170-D3HP:~$ tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1
tar (child): jre-*: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
linuxlite@linuxlite-H170-D3HP:~$

Well I sure am getting practice using the terminal. That is a good thing right.
« Last Edit: August 29, 2016, 09:01:34 AM by waynebob »
 

Re: How to Install Java on Linux Lite
« Reply #30 on: August 29, 2016, 08:05:00 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Is there any errors when running the script?
Code: [Select]
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
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #29 on: August 29, 2016, 12:14:54 AM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
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.
 

Re: How to Install Java on Linux Lite
« Reply #28 on: August 28, 2016, 11:21:58 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Once java is installed..
Code: [Select]
java -version should show an output similar to this

dad@TRCD-LLMini:$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 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: [Select]
/usr/lib/jvm/oracle_jdk8/bin/jcontrol
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #27 on: August 28, 2016, 11:07:56 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
You're just about there - I've installed Oracle java this way several times :) 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 :)
Flash is installed by default..
« Last Edit: August 28, 2016, 11:10:18 PM by firenice03 »
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #26 on: August 28, 2016, 10:55:31 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
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: [Select]
tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1
Allow to run then
Code: [Select]
touch /etc/profile.d/oraclejdk.shCreates the file oraclejdk.sh

The next command will open the newly created file in a text editor (leafpad - similar to notepad)
Code: [Select]
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: [Select]
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: [Select]
source /etc/profile.d/oraclejdk.sh
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to Install Java on Linux Lite
« Reply #25 on: August 28, 2016, 10:48:00 PM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
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/enable_browser_ubuntu.xml
 

Re: How to Install Java on Linux Lite
« Reply #24 on: August 28, 2016, 10:43:58 PM »
 

waynebob

  • New to Forums
  • *
  • 37
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: i5-7500

  • MEMORY: 16Gb

  • VIDEO CARD: GeForce GT 710

  • Kernel: 5.x
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:~$
 

Re: How to Install Java on Linux Lite
« Reply #23 on: August 28, 2016, 10:41:58 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
His last is an output...

What do you get when you run?
Code: [Select]
java -version
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section