Updating and deleting java (red hat / centos) (new)

Posted by JochemTheSchoolKid on Server Fault See other posts from Server Fault or by JochemTheSchoolKid
Published on 2012-12-01T22:47:12Z Indexed on 2012/12/02 11:08 UTC
Read the original article Hit count: 288

Filed under:
|
|

I am a total noob with linux. So please explain clearly if you have a solution for me. I have an VPS and I want to update JAVA. I found a guide on the Java site which says:

rpm -e < package_name >

I searched for the packages:

[root@srv1 ~]# rpm -qa | grep java 
java_cup-0.10k-5.el6.x86_64
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64

Than I tried to do the delete command

[root@srv1 ~]# rpm -e java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64

error: Failed dependencies:

    java-gcj-compat is needed by (installed) java_cup-1:0.10k-5.el6.x86_64
    java-gcj-compat >= 1.0.70 is needed by (installed) sinjdoc-0.5-9.1.el6.x86_64

What should I do now? Removing has worked thanks to the answer below

Problem two!

Now am I installing this package from java

[root@srv1 java]# rpm -ivh jre-7u9-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:jre                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/rt.pack
        jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/jsse.pack
        charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/charsets.pack
        localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/ext/localedata.pack
        plugin.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/plugin.pack
        javaws.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/javaws.pack
        deploy.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/deploy.pack

Can someone help me again with this?

© Server Fault or respective owner

Related posts about linux

Related posts about redhat