Re: netbeans and imagej

Posted by afro on
URL: http://imagej.273.s1.nabble.com/netbeans-and-imagej-tp3687112p3687115.html

I know they managed writing scripts. And I don't think this is a very
special case...
I explain my problem:
I have my plugin as a .java class. I have one jar file (created earlier)
with one method I want to call.
In netbeans, when I build my project, and start it (ImageJ starts), I launch
my plugin, but it can't find this .jar file. I tried to copy it everywhere,
but it doesn't work.

2010/8/19 Johannes Schindelin <[hidden email]>

> Hi,
>
> On Thu, 19 Aug 2010, József Pálfalvi wrote:
>
> > Yeah, it would be nice, and I'm o it, but I can't solve it. This whole
> > thing is a bit messed up.
> >
> > If someone nows where this special build.xml (mentioned in
> >
> http://imagej.588099.n2.nabble.com/ImageJ-and-NetBeans-td635868.html#a635869
> )
> > is, it would be very helpful!
>
> I fear you'll have to do it yourself, but I cannot help but think that the
> <unjar> should solve your problem. You'll just have to unjar the
> Matlab-generated .jar into your own .jar together with the plugin classes.
>
> Of course, after that you will most likely run into environment variable
> issues with native libraries, but a custom start script should help that.
>
> > Do I really need to use free-form project as in the tutorial? Hasn't
> > someone managed to write plugins, and debug using simple project, and
> > somehow starting ImageJ from netbeans??
>
> Oh, but people have managed to write plugins in Netbeans!!!
>
> What you try to do is a _very_ special case, though: you want to include
> Matlab-generated .jar files (which as far as I know still require a native
> component, so they are platform dependent).
>
> A quick workaround could be to copy the Matlab generated file into the
> plugins/ folder together with the .jar you generated with Netbeans.
>
> Hth,
> Johannes
>