Message8243

Author hinerm
Recipients hinerm
Date 2014-02-26.15:01:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393426872.15.0.475542827065.issue2116@psf.upfronthosting.co.za>
In-reply-to
Content
I was trying to write a jython script using various classes in Fiji (fiji.sc) and its components - for example, the attached annotation-test.py.

I downloaded Fiji and, knowing it contains all the jars I wanted to use, tried to run:

jython -Dpython.path <Fiji.app/jars> annotation-test.py <path/to/sample.image>

Where <Fiji.app/jars> was a properly formatted classpath containing all the .jars in Fiji.app/jars and subdirectories.

This failed to work, as the classes being used rely on an annotation processor for dynamic discovery of concrete interface implementations. The base interfaces were discovered, but no implementations.

However, if I set my CLASSPATH environment variable to include <Fiji.app/jars>, and just ran:

jython annotation-test.py <path/to/sample.image>

it works correctly, with all annotated classes being discovered.

Thus I assume some annotation metadata is lost when classes are on the python.path.
History
Date User Action Args
2014-02-26 15:01:12hinermsetrecipients: + hinerm
2014-02-26 15:01:12hinermsetmessageid: <1393426872.15.0.475542827065.issue2116@psf.upfronthosting.co.za>
2014-02-26 15:01:11hinermlinkissue2116 messages
2014-02-26 15:01:11hinermcreate