-   Linux - Server (
-   -   JDK Dependency (

Icantprintinlinux 02-17-2008 12:46 AM

JDK Dependency
Hey I am currently trying to get Alfresco installed. (using this documenation(

and I am trying to get java installed. I am required to use this specific jdk version. So i put this command in:
rpm –ivh java-1.6.0-sun-compat-
and i get this error:

warning: java-1.6.0-sun-compat- Header V3 DSA signature: NOKEY, key ID c431416d
error: Failed dependencies:
jdk = 2000:1.6.0_04-fcs is needed by java-1.6.0-sun-compat-

anybody know how I can go about fixing this depenancy issue? And I've had this error with both CentOS 5 and Fedora 7. And it needs this specific java version. Thanks Guys!

jay73 02-17-2008 01:27 AM

OK, but have you installed sun JDK 1.6 update 4 yet? From what I can infer, you are using jpackage. The thing is that jpackage aren't allowed to distribute it so you need to fetch and install it yourself first:
The compat package is there only to make the jdk integrate nicely with the rest of your system. Without a jdk, it isn't much use, it would be like getting gas if you don't own a car.

Icantprintinlinux 02-17-2008 01:42 AM

ohhh i see thank you very much, that's probably it ill give her a go!

Icantprintinlinux 02-17-2008 02:23 AM

Hey yea, i went and did that and i got the same thing still :(

any other ideas?

jay73 02-17-2008 01:00 PM

It works fine for me. Have you checked the JDK instructions on Have you switched your java environment yet? I believe that your system is still using gcj rather than jdk1.6. You can use update-alternatives to do that. Here is a script to do that - you'll probably need to replace /opt in each line with /usr/java if you used the rpm.bin installer - check where jdk was installed to); you'll also need to replace 1.6.0_03 with 1.6.0_04 if that is what you installed but it would be even better if you just created a "jdk1.6" symlink to your jdk and used that instead (you would then be able to replace your jdk at any moment without having to redo all of this):


#! /bin/bash

/usr/sbin/update-alternatives --install /usr/bin/java  java  /opt/jdk1.6.0_03/bin/java 50
/usr/sbin/update-alternatives --install /usr/bin/javac  javac  /opt/jdk1.6.0_03/bin/javac 50
/usr/sbin/update-alternatives --install /usr/bin/jar  jar  /opt/jdk1.6.0_03/bin/jar 50
/usr/sbin/update-alternatives --install /usr/bin/appletviewer  appletviewer  /opt/jdk1.6.0_03/bin/appletviewer 50
/usr/sbin/update-alternatives --install /usr/bin/apt  apt  /opt/jdk1.6.0_03/bin/apt 50
/usr/sbin/update-alternatives --install /usr/bin/extcheck  extcheck  /opt/jdk1.6.0_03/bin/extcheck 50
/usr/sbin/update-alternatives --install /usr/bin/idlj  idlj  /opt/jdk1.6.0_03/bin/idlj 50
/usr/sbin/update-alternatives --install /usr/bin/jarsigner  jarsigner  /opt/jdk1.6.0_03/bin/jarsigner 50
/usr/sbin/update-alternatives --install /usr/bin/javadoc  javadoc  /opt/jdk1.6.0_03/bin/javadoc 50
/usr/sbin/update-alternatives --install /usr/bin/javah  javah  /opt/jdk1.6.0_03/bin/javah 50
/usr/sbin/update-alternatives --install /usr/bin/javap  javap  /opt/jdk1.6.0_03/bin/javap 50
/usr/sbin/update-alternatives --install /usr/bin/jconsole  jconsole  /opt/jdk1.6.0_03/bin/jconsole 50
/usr/sbin/update-alternatives --install /usr/bin/jdb  jdb  /opt/jdk1.6.0_03/bin/jdb 50
/usr/sbin/update-alternatives --install /usr/bin/jhat  jhat  /opt/jdk1.6.0_03/bin/jhat 50
/usr/sbin/update-alternatives --install /usr/bin/jinfo  jinfo  /opt/jdk1.6.0_03/bin/jinfo 50
/usr/sbin/update-alternatives --install /usr/bin/jmap  jmap  /opt/jdk1.6.0_03/bin/jmap 50
/usr/sbin/update-alternatives --install /usr/bin/jps  jps  /opt/jdk1.6.0_03/bin/jps 50
/usr/sbin/update-alternatives --install /usr/bin/jrunscript  jrunscript  /opt/jdk1.6.0_03/bin/jrunscript 50
/usr/sbin/update-alternatives --install /usr/bin/jsadebugd  jsadebugd  /opt/jdk1.6.0_03/bin/jsadebugd 50
/usr/sbin/update-alternatives --install /usr/bin/jstack  jstack  /opt/jdk1.6.0_03/bin/jstack 50
/usr/sbin/update-alternatives --install /usr/bin/jstat  jstat  /opt/jdk1.6.0_03/bin/jstat 50
/usr/sbin/update-alternatives --install /usr/bin/jstatd  jstatd  /opt/jdk1.6.0_03/bin/jstatd 50
/usr/sbin/update-alternatives --install /usr/bin/keytool  keytool  /opt/jdk1.6.0_03/bin/keytool 50
/usr/sbin/update-alternatives --install /usr/bin/native2ascii  native2ascii  /opt/jdk1.6.0_03/bin/native2ascii 50
/usr/sbin/update-alternatives --install /usr/bin/orbd  orbd  /opt/jdk1.6.0_03/bin/orbd 50
/usr/sbin/update-alternatives --install /usr/bin/pack200  pack200  /opt/jdk1.6.0_03/bin/pack200 50
/usr/sbin/update-alternatives --install /usr/bin/policytool  policytool  /opt/jdk1.6.0_03/bin/policytool 50
/usr/sbin/update-alternatives --install /usr/bin/rmic  rmic  /opt/jdk1.6.0_03/bin/rmic 50
/usr/sbin/update-alternatives --install /usr/bin/rmid  rmid  /opt/jdk1.6.0_03/bin/rmid 50
/usr/sbin/update-alternatives --install /usr/bin/rmiregistry  rmiregistry  /opt/jdk1.6.0_03/bin/rmiregistry 50
/usr/sbin/update-alternatives --install /usr/bin/schemagen  schemagen  /opt/jdk1.6.0_03/bin/schemagen 50
/usr/sbin/update-alternatives --install /usr/bin/serialver  serialver  /opt/jdk1.6.0_03/bin/serialver 50
/usr/sbin/update-alternatives --install /usr/bin/servertool  servertool  /opt/jdk1.6.0_03/bin/servertool 50
/usr/sbin/update-alternatives --install /usr/bin/tnameserv  tnameserv  /opt/jdk1.6.0_03/bin/tnameserv 50
/usr/sbin/update-alternatives --install /usr/bin/unpack200  unpack200  /opt/jdk1.6.0_03/bin/unpack200 50
/usr/sbin/update-alternatives --install /usr/bin/wsgen  wsgen  /opt/jdk1.6.0_03/bin/wsgen 50
/usr/sbin/update-alternatives --install /usr/bin/wsimport  wsimport  /opt/jdk1.6.0_03/bin/wsimport 50
/usr/sbin/update-alternatives --install /usr/bin/xjc  xjc  /opt/jdk1.6.0_03/bin/xjc 50

This just plugs all the bits and pieces into your system. You still need to make the switch after this. You can do that manually by running sbin-update --update for each element (java, javac, javadoc, etc.) but I prefer using the galternatives GUI (not installed by default) to do that, it's faster.

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