PDA

View Full Version : Installin JAVA from FEDORAFaq



armandocl
5th September 2006, 03:55 PM
i got on error went im installing java.

[root@localhost ]# rpmbuild --rebuild Desktop/java-1.5.0-sun*src.rpm
Installing Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
error: Failed build dependencies:
jdk = 2000:1.5.0_08-fcs is needed by java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch

:confused:

sdrycroft
11th September 2006, 11:15 AM
i got on error went im installing java.

[root@localhost ]# rpmbuild --rebuild Desktop/java-1.5.0-sun*src.rpm
Installing Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
error: Failed build dependencies:
jdk = 2000:1.5.0_08-fcs is needed by java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch

:confused:

I'm getting exactly the same error.

LocutusOfBorg
11th September 2006, 11:38 AM
First rebuild and install java-1.5.0-sun-1.5.0.08-1jpp, then rebuild and install java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm.
You can't do it at the same time because the second package needs the first to be already installed before building.

EFakles
11th September 2006, 12:04 PM
First rebuild and install java-1.5.0-sun-1.5.0.08-1jpp, then rebuild and install java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm.
You can't do it at the same time because the second package needs the first to be already installed before building.

You need java-1.5.0-sun-compat-1.5.0.08-1jpp package only, if you install SUN-Java via the
*.rpm version (jdk-1_5_0_08-linux-i586-rpm.bin, or jre-...). Therefore you could use the
java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm file from JPackage.org. After that you should
be able to switch between the provided JRE 'gcj' and the SUN version through the 'alternatives' method. The *compat* package provide only Links/Scripts for switching between
the Java versions.

If you use the self-extracting version (jdk-1_5_0_08-linux-i586.bin), you need to rebuild the
java-1.5.0-sun-1.5.0.08-1jpp.nosrc.rpm file from JPackage.org, which is not released yet.
The *compat* package is not needed with this method, because it already contains the
Links/Scripts.

Regards,
Engelbert

sdrycroft
11th September 2006, 12:55 PM
You need java-1.5.0-sun-compat-1.5.0.08-1jpp package only, if you install SUN-Java via the
*.rpm version (jdk-1_5_0_08-linux-i586-rpm.bin, or jre-...). Therefore you could use the
java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm file from JPackage.org. After that you should
be able to switch between the provided JRE 'gcj' and the SUN version through the 'alternatives' method. The *compat* package provide only Links/Scripts for switching between
the Java versions.

If you use the self-extracting version (jdk-1_5_0_08-linux-i586.bin), you need to rebuild the
java-1.5.0-sun-1.5.0.08-1jpp.nosrc.rpm file from JPackage.org, which is not released yet.
The *compat* package is not needed with this method, because it already contains the
Links/Scripts.

Regards,
Engelbert

Thanks for that, I've installed the SUN rpm, along with the JPackage.org noarch rpm. Seems to be fine.

fathia
13th September 2006, 01:35 PM
i got on error went im installing java.

[root@localhost ]# rpmbuild --rebuild Desktop/java-1.5.0-sun*src.rpm
Installing Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
error: Failed build dependencies:
jdk = 2000:1.5.0_08-fcs is needed by java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch

I'm trying this one :
[QUOTE=EFakles]You need java-1.5.0-sun-compat-1.5.0.08-1jpp package only, if you install SUN-Java via the
*.rpm version (jdk-1_5_0_08-linux-i586-rpm.bin, or jre-...). Therefore you could use the
java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm file from JPackage.org. After that you should
be able to switch between the provided JRE 'gcj' and the SUN version through the 'alternatives' method. The *compat* package provide only Links/Scripts for switching between
the Java versions.

But, I have an other problem when I rebuild this file "java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm":
[root@localhost ~]# rpmbuild --rebuild Desktop/java-1.5.0-sun*arch.rpm
Installation de Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm
attention: InstallSourcePackage: Entête V3 DSA signature: NOKEY, key ID c431416d
erreur: paquetage source attendu, paquetage binaire trouvé
erreur: Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm ne peut être installé :confused: :confused: :confused:
I dont interestand this problem.

EFakles
13th September 2006, 05:43 PM
i got on error went im installing java.

[root@localhost ]# rpmbuild --rebuild Desktop/java-1.5.0-sun*src.rpm
Installing Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
warning: user scop does not exist - using root
warning: group scop does not exist - using root
error: Failed build dependencies:
jdk = 2000:1.5.0_08-fcs is needed by java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch

I'm trying this one :
[QUOTE=EFakles]You need java-1.5.0-sun-compat-1.5.0.08-1jpp package only, if you install SUN-Java via the
*.rpm version (jdk-1_5_0_08-linux-i586-rpm.bin, or jre-...). Therefore you could use the
java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm file from JPackage.org. After that you should
be able to switch between the provided JRE 'gcj' and the SUN version through the 'alternatives' method. The *compat* package provide only Links/Scripts for switching between
the Java versions.

But, I have an other problem when I rebuild this file "java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm":
[root@localhost ~]# rpmbuild --rebuild Desktop/java-1.5.0-sun*arch.rpm
Installation de Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm
attention: InstallSourcePackage: Entête V3 DSA signature: NOKEY, key ID c431416d
erreur: paquetage source attendu, paquetage binaire trouvé
erreur: Desktop/java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm ne peut être installé :confused: :confused: :confused:
I dont interestand this problem.

Why do you need to rebuild "java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm"?
You could already install it via "rpm -i java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm"
or "yum localinstall java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm".

Engelbert