Posted by
sridevi polavaram on
Oct 18, 2006; 7:25pm
URL: http://imagej.273.s1.nabble.com/Important-query-tp3701275p3701282.html
On 10/18/06, Curtis Rueden <
[hidden email]> wrote:
>
> Hi Sridevi,
>
> Does your code work when ImageJ is taken out of the equation? That is,
> have you developed code that interfaces successfully with Jena not as
> an ImageJ plugin?
Yes, it works perfect, I have another java program that uses the same
LineModel.java which has nothing to do with ImageJ.
Your exception trace looks like ImageJ is
> successfully calling your plugin, which is calling Jena, xerxes, etc.,
> but that some logical error has occurred deep within the SAX parser.
>
> If you think it's a class loading problem, you can test by adding all
> Jena JARs along with ij.jar to your classpath, then creating a main
> method for your plugin:
Yes, I have changed my classpath now all the jena jars and imagej jars are
located in IMAGEJ_HOME folder ...please look into my previous post.
public static void main(String[] args) {
> new ImageJ(null);
> String arg = ...; // my plugin arguments
> new Draw_a_Line().run(arg);
> }
>
> Running this main method will automatically launch ImageJ and execute
> your plugin. Not only nice for testing from the command line, but
> could also help iron out any classpath issues.
Hmmm...I can try this one too
If you get the same error message that way, perhaps the problem isn't
> ImageJ-related, but rather either a bug in Jena,
No, because this other program works jsut fine!
or a coding error in
> your plugin.
possible...but where, i don't know...