Re: [opensuse-factory] Re: [opensuse-java] Better support for third-party JREs
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-09-19 18:23, Lars Müller wrote:
A pseudo package with the provides and requires is not this hard and should be easy to establish by the comminity.
Well, I tried, and failed. This is why I'm asking for help. I created a "java" directory. I created there a Makefile: +++···················· all: dummie_java-sun gcc dummie_java-sun.c -o dummie_java-sun install: install dummie_java-sun /usr/local/bin ····················++- and a dummie_java-sun.c +++···················· #include <stdio.h> int main() { printf("Este programa es un dummie para que el rpm crea que hay un java-1_6_0-sun.rpm en el sistema\n"); } ····················++- then I run checkinstall, and I get an rpm: cer@Telcontar:~/Compilaciones/dummies/java> rpm -q java java-1.6.0-999.x86_64 but this rpm does not fool yast, it doesn't have the needed clauses which I don't know what they are nor how to create :-( - -- Cheers / Saludos, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBZ+IsACgkQIvFNjefEBxoZ5wCaAqjNlePwj/vToj2qC07mGW7P smIAoKCDftvo/3HKIr5dMIAy1s6B6xcQ =4GJ1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
Carlos, export JAVA_HOME="/usr/java/default" export PATH="$JAVA_HOME/bin:$PATH" That's stuff... put that in a /etc/profile.d/java-sun.sh and reload your profile... it should work. JDK scripts from oracle should update the '/usr/java/default'. I apologize for throwing the wrong path previously; yes alternatives should work with that... but this is how I use this. peace :) 2012/9/19 Carlos E. R. <carlos.e.r@opensuse.org>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-09-19 18:23, Lars Müller wrote:
A pseudo package with the provides and requires is not this hard and should be easy to establish by the comminity.
Well, I tried, and failed. This is why I'm asking for help.
I created a "java" directory. I created there a Makefile:
+++···················· all: dummie_java-sun gcc dummie_java-sun.c -o dummie_java-sun
install: install dummie_java-sun /usr/local/bin ····················++-
and a dummie_java-sun.c
+++···················· #include <stdio.h> int main() { printf("Este programa es un dummie para que el rpm crea que hay un java-1_6_0-sun.rpm en el sistema\n"); } ····················++-
then I run checkinstall, and I get an rpm:
cer@Telcontar:~/Compilaciones/dummies/java> rpm -q java java-1.6.0-999.x86_64
but this rpm does not fool yast, it doesn't have the needed clauses which I don't know what they are nor how to create :-(
- -- Cheers / Saludos,
Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlBZ+IsACgkQIvFNjefEBxoZ5wCaAqjNlePwj/vToj2qC07mGW7P smIAoKCDftvo/3HKIr5dMIAy1s6B6xcQ =4GJ1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- --- Artigo 21 - Direito à Resistência Todos têm o direito de resistir a qualquer ordem que ofensa os seus direitos, liberdades e garantias e de repelir pela força qualquer agressão, quando não seja possível recorrer à autoridade pública. Constituição da Républica Portuguesa -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-09-19 20:20, Nelson Marques wrote:
Carlos,
export JAVA_HOME="/usr/java/default" export PATH="$JAVA_HOME/bin:$PATH"
That's stuff... put that in a /etc/profile.d/java-sun.sh and reload your profile... it should work. JDK scripts from oracle should update the '/usr/java/default'.
You are not understanding the problem. I repeat that I have not any problem with running the java from Oracle/Sun. I have problems with the installation: Yast does not recognise JRE as providing java and wants to install another java. This is a packaging problem, not a java problem. - -- Cheers / Saludos, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBaI28ACgkQIvFNjefEBxqbggCgykp+vBWuetzkF2+y7HJbrjLY FtAAn2aB9lpqMHU8moV5dSEjddsS2FQ6 =1Kba -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
I repeat that I have not any problem with running the java from Oracle/Sun. I have problems with the installation: Yast does not recognise JRE as providing java and wants to install another java.
rpm -q --provides jdk That's maybe because in fact it doesn't offer that dependency? I do understand the problem, because for my employer we use Sun/Oracle JVM and we've gone exactly through the same. We've fixed that by banning all the Java stuff from Red Hat and by inserting a 'virtual' package that provides those dependencies and that has a 'Requires' to sun Java. They keywords is that we actually banned all stuff that uses gcj or openJDK :) You probably don't want to go that path... but trust me, it's been working in very critical mission systems... of course we're not a Linux distribution and we have very specific stuff... -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-09-19 22:19, Nelson Marques wrote:
I repeat that I have not any problem with running the java from Oracle/Sun. I have problems with the installation: Yast does not recognise JRE as providing java and wants to install another java.
rpm -q --provides jdk
That's maybe because in fact it doesn't offer that dependency?
cer@Telcontar:~> rpm -q --provides jdk package jdk is not installed
I do understand the problem, because for my employer we use Sun/Oracle JVM and we've gone exactly through the same. We've fixed that by banning all the Java stuff from Red Hat and by inserting a 'virtual' package that provides those dependencies and that has a 'Requires' to sun Java.
They keywords is that we actually banned all stuff that uses gcj or openJDK :)
You probably don't want to go that path... but trust me, it's been working in very critical mission systems... of course we're not a Linux distribution and we have very specific stuff...
It is more or less what I want, I guess. I have an rpm from oracle named "jre". It contains java, it works fine, update-alternatives et all, but yast thinks it doesn't and makes me install other java flavours. cer@Telcontar:~> rpm -q --provides jre jaxp_parser_impl xml-commons-apis jre = 1.6.0_33-fcs very little compared to: Telcontar:~ # rpm -q --provides java-1_6_0-openjdk config(java-1_6_0-openjdk) = 1.6.0.0_b24.1.11.4-12.1 jaas = 1.6.0.0_b24.1.11.4 java = 1.6.0 java-1.6.0 = 1.6.0.0_b24.1.11.4-12.1 java-1.6.0-64 java-1.6.0-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-64 = 1.6.0 java-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-openjdk-64 = 1.6.0.0_b24.1.11.4-12.1 java-sasl = 1.6.0.0_b24.1.11.4 jce = 1.6.0.0_b24.1.11.4 jdbc-stdext = 1.6.0.0_b24.1.11.4 jdbc-stdext = 3.0 jndi = 1.6.0.0_b24.1.11.4 jndi-cos = 1.6.0.0_b24.1.11.4 jndi-dns = 1.6.0.0_b24.1.11.4 jndi-ldap = 1.6.0.0_b24.1.11.4 jndi-rmi = 1.6.0.0_b24.1.11.4 jre = 1.6.0 ... - -- Cheers / Saludos, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBaLKMACgkQIvFNjefEBxrAAgCg061Pt/DldBvU70YuqnE2EY+i hL4An3aUEivwPBU38ELus+7QY3c18p4l =NmAC -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
cer@Telcontar:~> rpm -q --provides jdk package jdk is not installed
[nmarques@ptin-tst-evl-pds ~]$ rpm -q --provides jdk jaxp_parser_impl xml-commons-apis jdk = 2000:1.6.0_33-fcs pay some attention to the crazy Epoch (2000); someone at Sun/Oracle is something weird stuff ;)
You probably don't want to go that path... but trust me, it's been working in very critical mission systems... of course we're not a Linux distribution and we have very specific stuff...
It is more or less what I want, I guess.
I have an rpm from oracle named "jre". It contains java, it works fine, update-alternatives et all, but yast thinks it doesn't and makes me install other java flavours.
Tip: Don't mix JDK with JRE (JDK also provides JRE), if you install both RPM's the %post scripts will not behave correctly. I'm used to JDK because we actually want JDK and not just JRE as we want some runtime byte compiling.
cer@Telcontar:~> rpm -q --provides jre jaxp_parser_impl xml-commons-apis jre = 1.6.0_33-fcs
very little compared to:
Telcontar:~ # rpm -q --provides java-1_6_0-openjdk config(java-1_6_0-openjdk) = 1.6.0.0_b24.1.11.4-12.1 jaas = 1.6.0.0_b24.1.11.4 java = 1.6.0 java-1.6.0 = 1.6.0.0_b24.1.11.4-12.1 java-1.6.0-64 java-1.6.0-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-64 = 1.6.0 java-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-openjdk-64 = 1.6.0.0_b24.1.11.4-12.1 java-sasl = 1.6.0.0_b24.1.11.4 jce = 1.6.0.0_b24.1.11.4 jdbc-stdext = 1.6.0.0_b24.1.11.4 jdbc-stdext = 3.0 jndi = 1.6.0.0_b24.1.11.4 jndi-cos = 1.6.0.0_b24.1.11.4 jndi-dns = 1.6.0.0_b24.1.11.4 jndi-ldap = 1.6.0.0_b24.1.11.4 jndi-rmi = 1.6.0.0_b24.1.11.4 jre = 1.6.0 ...
And this is totally correct; it shows that openJDK is properly packaged according to JPackage; Sun isn't compliant to anything... except their own stuff... but it's still a great JVM, and 1.7.0 (besides some security issues) does offer quite a nice performance boost... -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-09-19 22:45, Nelson Marques wrote:
cer@Telcontar:~> rpm -q --provides jdk package jdk is not installed
[nmarques@ptin-tst-evl-pds ~]$ rpm -q --provides jdk jaxp_parser_impl xml-commons-apis jdk = 2000:1.6.0_33-fcs
pay some attention to the crazy Epoch (2000); someone at Sun/Oracle is something weird stuff ;)
Dunno what is that. :-)
I have an rpm from oracle named "jre". It contains java, it works fine, update-alternatives et all, but yast thinks it doesn't and makes me install other java flavours.
Tip: Don't mix JDK with JRE (JDK also provides JRE), if you install both RPM's the %post scripts will not behave correctly. I'm used to JDK because we actually want JDK and not just JRE as we want some runtime byte compiling.
I don't know the difference, I don't program in java.
cer@Telcontar:~> rpm -q --provides jre jaxp_parser_impl xml-commons-apis jre = 1.6.0_33-fcs
very little compared to:
Telcontar:~ # rpm -q --provides java-1_6_0-openjdk config(java-1_6_0-openjdk) = 1.6.0.0_b24.1.11.4-12.1 jaas = 1.6.0.0_b24.1.11.4 java = 1.6.0 java-1.6.0 = 1.6.0.0_b24.1.11.4-12.1 java-1.6.0-64 java-1.6.0-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-64 = 1.6.0 java-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-openjdk-64 = 1.6.0.0_b24.1.11.4-12.1 java-sasl = 1.6.0.0_b24.1.11.4 jce = 1.6.0.0_b24.1.11.4 jdbc-stdext = 1.6.0.0_b24.1.11.4 jdbc-stdext = 3.0 jndi = 1.6.0.0_b24.1.11.4 jndi-cos = 1.6.0.0_b24.1.11.4 jndi-dns = 1.6.0.0_b24.1.11.4 jndi-ldap = 1.6.0.0_b24.1.11.4 jndi-rmi = 1.6.0.0_b24.1.11.4 jre = 1.6.0 ...
And this is totally correct; it shows that openJDK is properly packaged according to JPackage; Sun isn't compliant to anything... except their own stuff... but it's still a great JVM, and 1.7.0 (besides some security issues) does offer quite a nice performance boost...
Whatever :-) All that is beyond me. - -- Cheers / Saludos, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBaMG8ACgkQIvFNjefEBxp5VgCeLFhCWTRPGvL9+j8XymA3+J23 gFoAnjbFHLrN7kWbKlYN9lSqI2KMY4cA =8h7h -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
2012/9/19 Carlos E. R. <robin.listas@telefonica.net>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-09-19 22:45, Nelson Marques wrote:
cer@Telcontar:~> rpm -q --provides jdk package jdk is not installed
[nmarques@ptin-tst-evl-pds ~]$ rpm -q --provides jdk jaxp_parser_impl xml-commons-apis jdk = 2000:1.6.0_33-fcs
pay some attention to the crazy Epoch (2000); someone at Sun/Oracle is something weird stuff ;)
Dunno what is that. :-)
Epoch is part of the RPM NEVRA (E); it's a package comparison that will override the traditional version and release... this to say: foo-2000.0-1 < foo-2000:1.0-1 Higher Epochs will override version and release versionings. You should know what it is if you are going to work with Oracle JDK.
I have an rpm from oracle named "jre". It contains java, it works fine, update-alternatives et all, but yast thinks it doesn't and makes me install other java flavours.
Tip: Don't mix JDK with JRE (JDK also provides JRE), if you install both RPM's the %post scripts will not behave correctly. I'm used to JDK because we actually want JDK and not just JRE as we want some runtime byte compiling.
I don't know the difference, I don't program in java.
In an easy way (anyone feel free to explain better) the JRE is the runtime environment; the JDK includes the runtime environment and the byte compilers which turn code into byte compiled files. Pretty much the same as .py and .pyc in Python. So it's in a way the same as having a JAVA compiler on the system.
cer@Telcontar:~> rpm -q --provides jre jaxp_parser_impl xml-commons-apis jre = 1.6.0_33-fcs
very little compared to:
Telcontar:~ # rpm -q --provides java-1_6_0-openjdk config(java-1_6_0-openjdk) = 1.6.0.0_b24.1.11.4-12.1 jaas = 1.6.0.0_b24.1.11.4 java = 1.6.0 java-1.6.0 = 1.6.0.0_b24.1.11.4-12.1 java-1.6.0-64 java-1.6.0-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-64 = 1.6.0 java-openjdk = 1.6.0.0_b24.1.11.4-12.1 java-openjdk-64 = 1.6.0.0_b24.1.11.4-12.1 java-sasl = 1.6.0.0_b24.1.11.4 jce = 1.6.0.0_b24.1.11.4 jdbc-stdext = 1.6.0.0_b24.1.11.4 jdbc-stdext = 3.0 jndi = 1.6.0.0_b24.1.11.4 jndi-cos = 1.6.0.0_b24.1.11.4 jndi-dns = 1.6.0.0_b24.1.11.4 jndi-ldap = 1.6.0.0_b24.1.11.4 jndi-rmi = 1.6.0.0_b24.1.11.4 jre = 1.6.0 ...
And this is totally correct; it shows that openJDK is properly packaged according to JPackage; Sun isn't compliant to anything... except their own stuff... but it's still a great JVM, and 1.7.0 (besides some security issues) does offer quite a nice performance boost...
Whatever :-) All that is beyond me.
- -- Cheers / Saludos,
Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlBaMG8ACgkQIvFNjefEBxp5VgCeLFhCWTRPGvL9+j8XymA3+J23 gFoAnjbFHLrN7kWbKlYN9lSqI2KMY4cA =8h7h -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- --- Artigo 21 - Direito à Resistência Todos têm o direito de resistir a qualquer ordem que ofensa os seus direitos, liberdades e garantias e de repelir pela força qualquer agressão, quando não seja possível recorrer à autoridade pública. Constituição da Républica Portuguesa -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2012-09-19 22:57, Nelson Marques wrote:
2012/9/19 Carlos E. R. <>:
Dunno what is that. :-)
Epoch is part of the RPM NEVRA (E); it's a package comparison that will override the traditional version and release... this to say:
Ok, something complicated that other people know about :-)
Higher Epochs will override version and release versionings. You should know what it is if you are going to work with Oracle JDK.
No, I don't work with that. I just use some java applications that expect the java flavour from sun, and some of these expect version 1.6, not 7.
In an easy way (anyone feel free to explain better) the JRE is the runtime environment; the JDK includes the runtime environment and the byte compilers which turn code into byte compiled files. Pretty much the same as .py and .pyc in Python. So it's in a way the same as having a JAVA compiler on the system.
Ok. Yes, I have read of this before, just that I forget which is which. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREIAAYFAlBaWFoACgkQja8UbcUWM1wyawD9HrjgVl3GzrPdeVsyDMwKT9lf JgNOWz0n9TUkVE65voMA/3rakEljRliQWa9gggAtVAS7Z5Oec9ry0s7V0Ph89fQF =uwKx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
No, I don't work with that. I just use some java applications that expect the java flavour from sun, and some of these expect version 1.6, not 7.
1.6 and 1.7 are Java platform technical specifications, pretty much also referred sometimes as Java6 and Java7, they are not versions. -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2012-09-20 02:59, Nelson Marques wrote:
No, I don't work with that. I just use some java applications that expect the java flavour from sun, and some of these expect version 1.6, not 7.
1.6 and 1.7 are Java platform technical specifications, pretty much also referred sometimes as Java6 and Java7, they are not versions.
I see. Thus it makes sense that java applications that work properly with J6 do not work with J7. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREIAAYFAlBbdMwACgkQja8UbcUWM1x9LQD/Xb/ccSpC4qss+LNlV2/Qm8nA AESjdMgx2i/mTCeqwboA/j+tEMcIOQiBBUU/kAFh+xEozcR0U8jzUT9JxpcADe3s =lMyR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Carlos E. R.
-
Nelson Marques