LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2004, 06:26 PM   #1
TSynergy
Member
 
Registered: Aug 2003
Location: Georgia U.S.A.
Posts: 100

Rep: Reputation: 16
Corrupt J2re: How Do I remove/delete/erase it


Hi

I'm trying to uninstall/remove/etc. the directory j2re1.4.2_05. Its corrupt so rpm doesn't recognize it and won't remove it.

So far I've tried these commands, the associated error messages are here listed:

rpm -evv j2re-1_4_2_05-linux-i586-rpm.bin
error: package j2re-1_4_2_05-linux-i586-rpm.bin is not installed

rm -r ........
error: directory not empty

If you have a solution/suggestion please share it. Much thanks. Tj
 
Old 11-19-2004, 09:45 PM   #2
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 25 86_64
Posts: 357

Rep: Reputation: 32
Hello TSynergy,

j2re-1_4_2_05-linux-i586-rpm.bin is not a RPM and cannot be uninstalled with RPM as you probably not installed it with RPM also.

Removing j2re1.4.2_05 is pretty easy, just delete the folder j2re1.4.2_05 and if you want to reinstall it again you better download the newest version.

http://javashoplm.sun.com/ECom/docs/...actionId=noreg

Download Linux self-extracting file (jre-1_5_0-linux-i586.bin, 15.75 MB)
(and save it in the root folder)

Installing JAVA
Login as root
Open the console (Terminal in System Tools)
chmod a+x jre-1_5_0-linux-i586.bin
./jre-1_5_0-linux-i586.bin

Open Computer (The file manager icon on your desktop)
Copy the whole folder jre-1_5_0 from root to /usr/lib/jre-1_5_0
Go to the folder [B]/usr/lib/jre-1_5_0/plugin/i386/ns7
Click with the right mouse button on the file libjavaplugin_oji.so and select Make Link
Copy the link to your browser plugin folder and rename it to libjavaplugin_oji.so

Logout as root
and login with your user account open your browser and test your Java plugin.

With kind regards,

Richard

P.S. I hope this is helpful for you if any question I'm willing to help

Last edited by Dummy-in-Linux; 11-19-2004 at 09:52 PM.
 
Old 11-19-2004, 10:08 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
j2re-1_4_2_05-linux-i586-rpm.bin is not a RPM and cannot be uninstalled with RPM as you probably not installed it with RPM also.
No but executing
Code:
sh j2re-1_4_2_05-linux-i586-rpm.bin
will extract j2re-1_4_2_05-linux-i586-rpm and you probably installed this.

do rpm -qa | grep j2re
to see the package, and then do
rpm -e <package name>
 
Old 11-22-2004, 11:22 AM   #4
TSynergy
Member
 
Registered: Aug 2003
Location: Georgia U.S.A.
Posts: 100

Original Poster
Rep: Reputation: 16
Hi

I have jre1.5 already installed. Figure if I remove the pervious version there won't be any conflicts with the program selecting the correct java plugin. All the associated java plugins seem to self-store into mozilla1.6 folder, even though I've now got mozilla1.7, and more recently mozillafirefox installed. Trying to remove earlier java program to minimize java plugin problems.

A while back I had tried to delete the directory j2re1.4.2_05 using the command rm -r. I think this command had asked me if I wanted to descend into the directory. It turned out to be a mistake to do so because it required deleting all the files one at a time: Since then I've been trying to find a command that will delete the directory and its contents.

At some point I thought it might be an rpm file because 'rpm' shows up in its name. I then tried rpm -e to remove the directory. An error message said the file/directory doesn't exist. I gathered from that that the folder became corrupt because of some deleted files.

Thanks for your comments, it and the searchings I do, help me to become more comfortable/familiar with linux. It seems everyday I learn something new, though I wish my findings were all related to solving my current situation .
tj
 
Old 11-22-2004, 12:23 PM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
when you want to delete a directory and all its contents you do
Code:
rm -fr <directory name>
the f means force.
if you simply do rm -r , the system will probably ask you to verify for every single file.when you install a package
with the name j2re-1_4_2_05-linux-i586-rpm you remove it (in most cases) with the command
rpm -e j2re
simply do
rpm -qa |grep j2re
to see all the packages that their names contain the word j2re
and to deside which you need to remove
then you remove it with
rpm -e <pachage name>

look in my system
Code:
[skalkoto@localhost skalkoto]$ rpm -qa|grep j2re
j2re-1.4.2_06-fcs
[skalkoto@localhost skalkoto]$
what i need to do to remove this package is
Code:
rpm -e j2re-1.4.2_06-fcs
do not remove directories of rpm packages. if you don't want it any more remove the hole package
if rpm -qa|grep j2re does mot dive you any results then you don't have installed it as rpm package and it's ok to remove the directory

Last edited by perfect_circle; 11-22-2004 at 12:26 PM.
 
Old 11-22-2004, 01:13 PM   #6
TSynergy
Member
 
Registered: Aug 2003
Location: Georgia U.S.A.
Posts: 100

Original Poster
Rep: Reputation: 16
Yes!

[root@localhost spice]# rm -frvv j2re1.4.2_05

-fr worked.

Much thanks.

Tj
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
j2re-1.4.2 paul62 Slackware 6 07-09-2005 05:06 PM
Delete corrupt file hagman Linux - General 4 07-26-2004 03:15 PM
How to delete (remove) Fedora Darthomir Fedora 8 03-19-2004 09:52 PM
force delete/remove and mass file permissions-setting moxieman99 Linux - Newbie 2 02-15-2004 11:43 AM
Can't delete corrupt file linuxfond Linux - Newbie 2 02-01-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration