PDA

View Full Version : unistalling jdk1.5.0_05



michaelcarlson
17th November 2005, 04:24 AM
I'm very new to linux, I just installed Fedora core 4 and Jdk1.5.0_05. I would like to know how to remove jdk, because when I run a program with inner classes I get a noclassdef error.
Thanks

Firewing1
17th November 2005, 04:34 AM
just remove that direcorty containing the jdk
Firewing1

Spoon!
17th November 2005, 07:47 AM
How did you install it? If you used an RPM, then do "rpm -e packagename" or "yum remove packagename" where package name is the internal name of the package.

michaelcarlson
18th November 2005, 05:05 AM
I used rpm, so I should use rpm -e jdk-1_5_0_05-linux-i586-rpm.bin?

Firewing1
18th November 2005, 05:08 AM
no, do this:
rpm -qa | grep jdk
then rpm -e result of previous command without version numbers
example:
rpm -qa | grep jdk shows jdk-1.5.0_05
then rpm -e jdk
will remove it.
Firewing1

michaelcarlson
18th November 2005, 05:26 AM
Thanks for the help.