sig1-gr

2015-01-03 Thread Dalios

Hello all,

a few days ago I had to install Java in a laptop in order for a web
application to be able to function properly. I followed directions
found in the internet (mostly the debian wiki and the Adobe
download page). Now I want to uninstall Java and undo all settings
to go were I was before all this got started. The installed system
is a (rather stock) Debian 7 Wheezy LXDE.

I paste here the relevant commands from my bash history (for root
and for my user):


-88--8

root@debian:/home/jcb# history
apt-get install default-jre
aptitude search jdk
apt-get install default-jre
aptitude search java
aptitude install java-package
make-jpkg /home/jcb/Downloads/jre-8u25-linux-i586.tar.gz
aptitude search jre
aptitude install openjdk-7-jre
aptitude install openjdk-7-jre-lib
aptitude install icedtea-7-plugin
aptitude uninstall openjdk-7-jre
aptitude purge openjdk-7-jre
aptitude install openjdk-7-jre-lib icedtea-7-plugin
ln -s /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so  
mozilla-javaplugin.so

ls -la  /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/
cd /etc/alternatives
ln -s /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so  
mozilla-javaplugin.so

ls -la mozilla-javaplugin.so
cd /usr/lib/mozilla/plugins/
ln -s /etc/alternatives/mozilla-javaplugin.so  mozilla-javaplugin.so
ls -la mozilla-javaplugin.so
ln -s /etc/alternatives/mozilla-javaplugin.so mozilla-javaplugin.so
cd /home/jcb/Downloads/
mv /home/jcb/Downloads/jdk1.8.0_25 /opt
cd /opt/
update-alternatives --install /usr/bin/java java 
/opt/jdk1.8.0_25/bin/java 1
update-alternatives --install /usr/bin/javac javac 
/opt/jdk1.8.0_25/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so 
mozilla-javaplugin.so /opt/jdk1.8.0_25/jre/lib/i386/libnpjp2.so
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so 
mozilla-javaplugin.so /opt/jdk1.8.0_25/jre/lib/i386/libnpjp2.so 1

update-alternatives --set java /opt/jdk1.8.0_25/bin/java
pdate-alternatives --set javac /opt/jdk1.8.0_25/bin/javac
update-alternatives --set javac /opt/jdk1.8.0_25/bin/javac
update-alternatives --set mozilla-javaplugin.so 
/opt/jdk1.8.0_25/jre/lib/i386/libnpjp2.so

java -version


jcb@debian:~$ history
aptitude search jdk
su
fakeroot make-jpkg /home/jcb/Downloads/jre-8u25-linux-i586.tar.gz



-88--8


Thanks in advance
Dalios




Re: sig1-gr

2015-01-03 Thread Ric Moore

On 01/03/2015 03:06 AM, Dalios wrote:

Hello all,

a few days ago I had to install Java in a laptop in order for a web
application to be able to function properly. I followed directions
found in the internet (mostly the debian wiki and the Adobe
download page).


It would have been far easier to use synaptic, then check the java 
packages that you wanted and let it install them. A couple of minutes 
later and you would have been done.


 Now I want to uninstall Java and undo all settings

to go were I was before all this got started.


It would have been just as easy to uninstall the packages with synaptic. 
But, since you opted to do all of those alternatives links by hand, 
you'll have to delete them yourself. What webpage provided these 
instructions? :) Ric


--
My father, Victor Moore (Vic) used to say:
There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome. R.I.P. Dad.
Linux user# 44256


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/54a8357a.1000...@gmail.com