JDK Dependency
Hey I am currently trying to get Alfresco installed. (using this documenation(http://wiki.alfresco.com/wiki/Instal...AR_on_Centos_5)
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-1.6.0.04-1jpp.i586.rpm and i get this error: warning: java-1.6.0-sun-compat-1.6.0.04-1jpp.i586.rpm: 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-1.6.0.04-1jpp.i586 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! |
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: http://java.sun.com/javase/downloads/index.jsp
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. |
ohhh i see thank you very much, that's probably it ill give her a go!
|
Hey yea, i went and did that and i got the same thing still :(
any other ideas? |
It works fine for me. Have you checked the JDK instructions on jpackage.org? 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):
Code:
#! /bin/bash |
All times are GMT -5. The time now is 07:21 PM. |