From: Updike, Clark <Clark.U<pdike@jh...> - 2004-01-29 05:47:49
A workaround was posted here:
From: Patrick Surry
Sent: Friday, January 23, 2004 11:47 AM
Subject: [Jython-users] jython class importer doesn't search MANIFEST
A small thing that tripped me up. I have a jar file that I'm using from
jython which refers to other jars in its MANIFEST.MF:
Created-By: 1.3.1 (Sun Microsystems Inc.)
Class-Path: thirdparty/pv.jar thirdparty/jbcl.jar thirdparty/xml-apis.
jar thirdparty/xalan.jar thirdparty/xercesImpl.jar thirdparty/dom4j.j
ar thirdparty/ExtDirPaneQS.jar thirdparty/antlrall.jar
When you use it from java, you just refer to the main jar and get all the
others 'for free'. But jython doesn't seem to know anything about those
jar files unless you explicitly add them to your CLASSPATH or -cp when
I guess it would be good if it did - I guess somehow jython's import
is different from java's? The URL and extract below appear to explain how
meant to work.
Does this warrant a bug report?
Download Extensions - version 1.2 only
Download extensions are JAR files that are referenced by the manifest files
other JAR files. See the trail on the extension mechanism for information
In a typical situation, an applet will be bundled in a JAR file whose
references a JAR file (or several JAR files) that will serve as an extension
for the purposes of that applet. Extensions may reference each other in the
Download extensions are specified in the Class-Path header field in the
manifest file of an applet, application, or another extension. A Class-Path
header might look like this, for example:
Class-Path: servlet.jar infobus.jar acme/beans.jar
With this header, the classes in the files servlet.jar, infobus.jar, and
acme/beans.jar will serve as extensions for purposes of the applet or
application. The URLs in the Class-Path header are given relative to the URL
of the JAR file of the applet or application.
Patrick Surry, PhD Tel 617 457 5200 Fax 617 457 5299 http://www.quadstone.com
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Jython-users mailing list