LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install Java on Linux Lite
#31
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.
Reply
#32
Given up LOL; naw you're almost there - just little things, no show stoppers... Smile
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:
cd Downloads

The above is the same as the command below - assuming your username is linuxlite
Code:
cd /home/linuxlite/Downloads

You can confirm you are in the correct directory by typing
Code:
ls
This 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:
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:
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
Reply
#33
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™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ 64-Bit Server VM (build 25.101-b13, mixed mode)
linuxlite@linuxlite-H170-D3HP:~$
Reply
#34
Good to see you got it!!!! Smile

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
Reply
#35
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
Reply
#36
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
Reply
#37
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™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ 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:~$
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)