LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-17-2008, 12:46 AM   #1
Icantprintinlinux
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Rep: Reputation: 0
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!
 
Old 02-17-2008, 01:27 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
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.
 
Old 02-17-2008, 01:42 AM   #3
Icantprintinlinux
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Original Poster
Rep: Reputation: 0
ohhh i see thank you very much, that's probably it ill give her a go!
 
Old 02-17-2008, 02:23 AM   #4
Icantprintinlinux
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Unhappy

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

any other ideas?
 
Old 02-17-2008, 01:00 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
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

/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.

Last edited by jay73; 02-17-2008 at 01:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
32 bit JDK vs 64 bit JDK paragkalra Linux - Software 4 11-28-2007 05:36 AM
Jdk onelung02 Linux - Software 5 07-14-2006 03:43 PM
concerning jdk-1_5_0_05 YBA^[x] Slackware 15 10-13-2005 09:03 PM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM
how to use Jdk 1.3.1 in RH 9 Egyptian_Isis Linux - Newbie 1 11-06-2003 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration