Message8243
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. |
|
Date |
User |
Action |
Args |
2014-02-26 15:01:12 | hinerm | set | recipients:
+ hinerm |
2014-02-26 15:01:12 | hinerm | set | messageid: <1393426872.15.0.475542827065.issue2116@psf.upfronthosting.co.za> |
2014-02-26 15:01:11 | hinerm | link | issue2116 messages |
2014-02-26 15:01:11 | hinerm | create | |
|