Today i had a bad relation with openjdk. I'm in charge of minig packaging, which is full java webmail in two parts, eclipse product for the backend, gwt for the frontend.
On redhat, i can't build minig with openjdk because the build crash because of openjdk, so i use jpackage (so sun-jdk) to build. To run minig, today there is a "require" on openjdk, but i think, and thomas also that we must use sun-jdk. If the build crash with openjdk, the run can be unstable with this...
Now, on debian. Cool!! there is sun jdk which is available on debian. But by my mistake i had build minig with "javac" from openjdk, and the build don't crash!!!! But on install, with the use of sun-jdk minig crash with strange, and ramdom error on multiple build...
So, I built a minig with sun-jdk and now, works like a charm!!!
SO what is the moral of the story? openjdk is doesnt ready for production for us, and I will review rpm packaging to force to use sun-jdk instead of openjdk in rpm package, this is my next task for rpm packaging.
And now how use sun-jdk on centos or redhat?
an extarct of http://wiki.centos.org/HowTos/JavaOnCentOS:
"The Sun license concerning distribution of Java (through to Java 6) contains clauses, the terms of which, the CentOS team have concluded they cannot meet. Conversations with Sun's representatives on a modified distribution license were underway in August 2008 but they did not yield fruit. Seemingly Sun was looking forward to the more free, later, Java releases (on the horizon, upstream) in our upstream's Fedora project."
- Grr isn't a simple a "yum install sun-jdk" like a debian ( i loveeeeee redhat!! ). and it seems that they don't have official yum repository too intall sun-jdk on centos or redhat.
- use jpackage?
No because i can't propose to user to sign DLJ on rpm before rpm installation.
No because it seems that the last update is very old(and maybe not maintain). The latest version of jpackage is jdk 1.6.0 update 11 (http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/)
- use binary of sun-jdk dlj version, like jpackage?
No because i can't propose to user to sign DLJ on rpm before rpm installation.
No because i don't want repackage and become a maintener of a package like a jpackage for obm....
So what???
I think that the best solution is to use rpm version of official sun jdk from SUN. But There are at big constraint, all java component require a manual download and installation on each install.
I will test installation of this package and all JAVA path on obm's java components next weeks.
The result will be in future post.
If anyone has a solution i'm here
2 commentaires:
Hi, for your information the latest Sun JDK is always provided as a RPM on Red Hat Network :
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html/Technical_Notes/java-1.6.0-sun.html
The Red Hat RPM is based on Jpackage RPM.
thanks for this comments, but redhat doesn't publist src of this rpm, th last release of this seems to be 1.6.0-19 but the public jpckage older.
Post a Comment