> Hi Yoav et al,
> Is there good information around somewhere about how to make RPMs for 
> Java libraries?  For instance, HttpClient provides nothing by itself 
> and should be put into the classpath of each project you need to use it 
> with.  It's not a good idea for installers to put things into the 
> extensions directory of the JRE because it can cause conflicts, hides 
> the fact that the jar has to be redistributed with the application and 
> the installer likely has no idea with JVM it needs to install into 
> anyway.

The jpackage RPMs work the other way round. There is a single repository
(not related to a JVM) which holds all the libraries for a system.
Applications then make use of these libraries by dynamically generating
a classpath containing only those libraries that the application
requires.

This does mean that anyone creating an RPM needs to patch any launch
scripts to use the classpath generation tools, but it's the only way
really.

The RPMs for libraries are really just providing dependency information
so that when I request an installer (apt/yum) to install an application
the installer can go off and ensure that all the dependencies are
satisfied before installing the main app.

> 
> So given that, is it useful to have RPMs for Java libraries and if so, 
> how should they be packaged?

Very useful, I don't need to find out what version of what library is
needed for what app. It's all sorted out by an installer when the RPMs
are installed. The system also handles ongoing upgrades of apps as well
as initial installs

> 
> My personal opinion is that Java libraries should be packaged as tar.gz 
> and .zip archives complete with documentation as well as a plain jar 
> file if it's totally standalone (though that's not essential).  I've 
> never wanted an installer and always actively avoid them for libraries. 
>   Complete programs (eg: tomcat and maven) on the other hand I'm all for 
> having an installer for and thus RPMs would be great.
> 
Again RPMs are really archive files with added dependency data which is
then used by an installer.
-- 
Jeff Martin

Memetic Engineer

http://www.custommonkey.org/ 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to