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 33994 times)

0 Members and 4 Guests are viewing this topic.

Re: How to Install Java on Linux Lite
« Reply #22 on: August 28, 2016, 10:31:43 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
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.
 

Re: How to Install Java on Linux Lite
« Reply #21 on: August 28, 2016, 08:10:09 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
See if you can cd to the jvm directory

Code: [Select]
cd /usr/lib/jvm
If not maybe this directory needs created prior??
Code: [Select]
mkdir /usr/lib/jvmthen
Code: [Select]
mkdir /usr/lib/jvm/oracle_jdk8
Might be worth a try... If not it maybe a permissions issue?
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 #20 on: August 28, 2016, 02:57:38 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 open a terminal in the downloads box and copy/paste sudo su and get in root with red writing then copy/paste the next line to create the directory. Here's what I get, didn't know you could copy/paste the command box.

linuxlite@linuxlite-H170-D3HP:~/Downloads$ sudo su
[sudo] password for linuxlite:
root@linuxlite-H170-D3HP:/home/linuxlite/Downloads# mkdir /usr/lib/jvm/oracle_jdk8
mkdir: cannot create directory ‘/usr/lib/jvm/oracle_jdk8’: No such file or directory
root@linuxlite-H170-D3HP:/home/linuxlite/Downloads#
 

Re: How to Install Java on Linux Lite
« Reply #19 on: August 28, 2016, 02:04:08 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
Make sure you're coping the commands exactly - you can use the select to highlight then copy and using the terminal edit,to paste the commands in..

for sudo su it should of prompted for a password I assume you entered the  password and was accepted..

Again for mkdir ensure all "/" are in context...
/usr/lib is an actual directory usr/lib is not

FYI - If a command has a capital it must be entered with same capital...
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 #18 on: August 28, 2016, 01:16:57 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
Okay I did the first copy/paste for sudo su then the next to mkdir etc. and it says cannot create directory and no such file or directory? Not sure what I am doing wrong.
 

Re: How to Install Java on Linux Lite
« Reply #17 on: August 28, 2016, 10:51:15 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
@waynebob...

Some of those are probably dependencies and/or documentation.. The description will inform their purpose...

Note the color of the box - not the start  ;)
Green is installed, you'll want to mark for removal

For openjdk - mark the JDK and the JDK source files (description) when marking for removal it should remove the dependencies as well..

Also look for ICEDTEA its another java program, remove in similar..

Once removed, double check if there are other "java"/"jdk" files installed you can select for removal...

Then follow Jerry's info to install - It works very well....
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 #16 on: August 28, 2016, 09:17:19 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
Would like to install Oracle's Java for Pogo games. When I search in Synaptic I have 7 openjdk installed in my LL 2.8 and 9 installed in my LL 3.0 that I would like to install Oracle's Java in.
The tutorial said there would be only 2, not sure what to do.
Thanks, Wayne.
Oops, looks like the green squares are the installed ones, not the stars beside them. But my LL 2.8 has 2 squares and my LL 3.0 has 4?
« Last Edit: August 28, 2016, 09:26:49 AM by waynebob »
 

Re: How to Install Java on Linux Lite
« Reply #15 on: March 31, 2016, 06:37:26 AM »
 

stop0x0000000a

  • New to Forums
  • *
  • 18
    Posts
  • Reputation: 6
  • Linux Lite Member
    • View Profile
So what do you mean

if you have done the things above:

Code: [Select]
cd /usr/lib/jvm
rm -rf oracle_jdk8/

you've completed your mission successfully, no more Java ;)

I am a Java programmer actually, dozen of JVM installed and I simply delete their folders, if they are not needed anymore.
 

Re: How to Install Java on Linux Lite
« Reply #14 on: March 31, 2016, 04:18:35 AM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
So what do you mean

Sent from my K00L using Tapatalk

 

Re: How to Install Java on Linux Lite
« Reply #13 on: March 31, 2016, 02:19:39 AM »
 

stop0x0000000a

  • New to Forums
  • *
  • 18
    Posts
  • Reputation: 6
  • Linux Lite Member
    • View Profile
I still have openjdk so I assume it will be the same

Sent from my K00L using Tapatalk

Java is just a folder + a couple of environment variables.
No folder = no java anymore.

You can have more than one JDK installed, this case that profile JAVA_HOME selects the particular one to use.



 

Re: How to Install Java on Linux Lite
« Reply #12 on: March 31, 2016, 01:59:36 AM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
I still have openjdk so I assume it will be the same

Sent from my K00L using Tapatalk

 

Re: How to Install Java on Linux Lite
« Reply #11 on: March 31, 2016, 01:52:00 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Open a terminal, try:

Code: [Select]
sudo su
cd /usr/lib/jvm
rm -rf oracle_jdk8/
rm -rf /etc/profile.d/oraclejdk.sh

then:

Code: [Select]
java -version
should return something like:

Code: [Select]
test32@test32-VirtualBox:~$ java -version
The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.8-jre-headless
 * openjdk-7-jre-headless
 * gcj-4.6-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>
test32@test32-VirtualBox:~$

If it doesn't, reboot and try java -version again.
 

Re: How to Install Java on Linux Lite
« Reply #10 on: March 31, 2016, 01:21:51 AM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
Go up to the first post exactly like it. Same commands and everything.

Sent from my K00L using Tapatalk
« Last Edit: March 31, 2016, 01:25:28 AM by liamjake05 »
 

Re: How to Install Java on Linux Lite
« Reply #9 on: March 30, 2016, 05:08:42 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
We need to know how you installed it in the first place.
 

Re: How to Install Java on Linux Lite
« Reply #8 on: March 30, 2016, 05:06:53 PM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
Well I used this guide and it seemed confusing.

Sent from my K00L using Tapatalk

 

 

-->
X Close Ad

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