[CentOS] Java headaches

Robert Moskowitz

rgm at htt-consult.com
Tue Jan 30 06:14:45 UTC 2007


I lost my harddrive, and have had to reinstall.  This time, I am being a 
bit smarter on imaging, but still got to get things installed...

Installing Freemind.  It needs Java JRE.

So after lots of pain, and reading past messages, I got 
jre-1_5_0_09-linux-i586.rpm from sun and installed it.

Then I tried to follow Jim Perrin's recommendation to install from 
jpackage.org the java-1.5.0-sum-compat.rpm.  Thing is it is complaining 
about no JDK (not JRE!)

yum install java-1.5.0-sun-compat  (have jpackage.org repo in yum.repo.d)

Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package java-1.5.0-sun-compat.noarch 0:1.5.0.09-1jpp set to be updated
--> Running transaction check
--> Processing Dependency: jdk = 2000:1.5.0_09-fcs for package: 
java-1.5.0-sun-compat
--> Finished Dependency Resolution
Error: Missing Dependency: jdk = 2000:1.5.0_09-fcs is needed by package 
java-1.5.0-sun-compat


Huh?

so i just try Alfred von Campe's Alternatitive commands:

/usr/sbin/alternatives --install /usr/bin/java java 
/usr/java/jre1.5.0_09/bin/java 10 \
    --slave /usr/bin/rmiregistry rmiregistry 
/usr/java/jre1.5.0_09/bin/rmiregistry \
    --slave /usr/lib/jvm/jre jre /usr/java/jre1.5.0_09
/usr/sbin/alternatives --set java /usr/java/jre1.5.0_09/bin/java

These seem to work but:

rpm -ivh jgoodies-forms-1.0.5-2jpp.noarch.rpm
error: Failed dependencies:
        java >= 0:1.4 is needed by jgoodies-forms-1.0.5-2jpp.noarch

and java -version yields:

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)


OK.  What is broken here?





More information about the CentOS mailing list