Page 1 of 1

packaging of Java applications

PostPosted: Jul 10th, '12, 11:34
by gouessej
Hi

I would like to make an RPM from my JNLP (Java Web Start / Icedtea Web Start) file. I tried to use JDIC-Packager (jnlp2rpm) but it works only with the non free version of Java (whereas I made some efforts to remove this requirement from my project), I fixed some compile errors but it doesn't work anyway. I would like to create an RPM that requires OpenJDK 1.6 & Icedtea Web (maybe OpenAL too) and just calls javaws to install and uninstall my project because there are tons of dependencies and other installed applications might need other versions of them. I have found no mention of Java Web Start in the Java policies and as my project is OS-agnostic, I would like to avoid using rpmbuild for such a simple task. How can I create such a binary RPM? Do I need a spec file and .rpmmacros? Can I use the install script to call javaws?

Re: packaging of Java applications

PostPosted: Jul 11th, '12, 20:26
by doktor5000
Yep, you need a SPEC and rpmbuild, and an ~/.rpmmacros as you want to create a package from scratch.
And you can call whatever commands you want during install time.

Re: packaging of Java applications

PostPosted: Jul 12th, '12, 09:41
by gouessej
I have recently found a very nice solution to do that. Redline RPM is a pure Java RPM library, I can use it with Apache Ant to make my RPMs even under operating systems not supporting natively RPM packages. I will check my RPMs are correct with rpmlint anyway.

Re: packaging of Java applications

PostPosted: Jul 13th, '12, 21:34
by doktor5000
FWIW, here's a link for the record: http://code.google.com/p/redline-rpm/wiki/Usage