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
#11
Open a terminal, try:

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

then:

Code:
java -version

should return something like:

Code:
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.
Reply
#12
I still have openjdk so I assume it will be the same

Sent from my K00L using Tapatalk

Reply
#13
(03-31-2016, 05:59 AM)liamjake05 link Wrote: 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.



Reply
#14
So what do you mean

Sent from my K00L using Tapatalk

Reply
#15
(03-31-2016, 08:18 AM)liamjake05 link Wrote: So what do you mean

if you have done the things above:

Code:
cd /usr/lib/jvm
rm -rf oracle_jdk8/

you've completed your mission successfully, no more Java Wink

I am a Java programmer actually, dozen of JVM installed and I simply delete their folders, if they are not needed anymore.
Reply
#16
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?
Reply
#17
@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  Wink
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
Reply
#18
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.
Reply
#19
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
Reply
#20
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#
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)