Open a terminal, try:
Code:
sudo su
cd /usr/lib/jvm
rm -rf oracle_jdk8/
rm -rf /etc/profile.d/oraclejdk.sh
then:
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.
I still have openjdk so I assume it will be the same
Sent from my K00L using Tapatalk
(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.
So what do you mean
Sent from my K00L using Tapatalk
(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
I am a Java programmer actually, dozen of JVM installed and I simply delete their folders, if they are not needed anymore.
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?
@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....
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.
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...
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#