Login  Register

Re: Path Problem?

Posted by Bob Loushin on Jan 19, 2010; 9:23pm
URL: http://imagej.273.s1.nabble.com/Path-problem-tp3689668p3689673.html

Stephan,

Thank you!  It all works now, when I put the path in the .config file.  That
was the missing piece.  Yes, it was a conspiracy--ImageJ forcing things into
packages before allowing objects to call one another, and then Java having
this subtle issue with paths inside .jar files needing to match the package
structure.

I really appreciate your help.

Bob

Subject: Re: Path Problem?

> It seems that either Java or ImageJ show us their ugly face here ;)
>
> The path matters!  Never thought about this because I always followed
> the main stream and did that...
>
> If test_1 is in package my_stuff, it also has to be in a folder my_stuff
> respectively.  The content of your jar must thus be minimally:
>
> $ jar -vtf Test_.jar
>   471 Tue Jan 19 17:58:14 CET 2010 my_stuff/test_1.class
>   132 Tue Jan 19 17:40:20 CET 2010 plugins.config
>
>>SNIP<<