Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Packaging (http://www.linux-archive.org/fedora-packaging/)
-   -   Is class-path-in-manifest permitted when packaging a JAR file depending on a JNI-using JAR file? (http://www.linux-archive.org/fedora-packaging/333085-class-path-manifest-permitted-when-packaging-jar-file-depending-jni-using-jar-file.html)

Ville Skyttä 02-27-2010 05:51 PM

Is class-path-in-manifest permitted when packaging a JAR file depending on a JNI-using JAR file?
 
On Saturday 27 February 2010, Chen Lei wrote:
> I realized from
> https://fedoraproject.org/w/index.php?title=Packaging:Java&oldid=154023#Gu
> ideline that if you are depending on a JNI-using JAR file, you'll need to
> add it manually -- build-classpath will not find it. Does this mean that
> I can add the JNI-using JAR file to the class-path in MANIFEST.MF?

No. Among other usual problems with manifest classpaths, that would make your
jar arch dependent and it could no longer be installed in /usr/share/java
which would then cascade into packages that use your jar.

What you should look into doing is finding out whether the "java" to be
invoked is a 64-bit or 32-bit one, and add /usr/lib64/some/thing.jar or
/usr/lib/some/thing.jar accordingly as appropriate to your classpath. I'm not
sure if there are any helpers available for doing that.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging


All times are GMT. The time now is 01:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.