• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

how to remove java rpm from RH9

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed one version of java rpm , but I want to uninstall that rpm and again install another version of java rpm.
when removing the rpm I am getting error

when i gave this command rpm --erase j2sdk-1.4.2_06-fcs
/var/tmp/rpm-tmp.74056: command substitution: line 1: unexpected EOF while looki
ng for matching `"'
/var/tmp/rpm-tmp.74056: command substitution: line 2: syntax error: unexpected e
nd of file
Saloon Keeper
Posts: 22801
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not necessary to erase jdk's when newer ones come in, since Sun has ensured that their RPM directory structure keeps every JDK in its own place. I usually have 2-3 on a system since I don't like to delete them until I'm sure that nothing broke that will require falling back.

Your message looks like a problem in one of the RPM script files. You are running as root, I hope (since you'd probably not even get THAT far otherwise). You might want to look at the temp file script to see if there's anything in there that helps.

When all else fails, forcibly delete the RPM from the RPM database and manually delete the unwanted jdk files. They're all going to be under the /usr/java/j2sdk1.4.2_06 directory.

You might try rpm -V to check the current installation and/or do a fix run on the RPM database. It couldn;t hurt and it might help.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic