develop plugins with netbeans - using jar

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

develop plugins with netbeans - using jar

Nicola B.
Dear all,
I have a little problem. I developed some Java objects (that I have
included in a jar file), and now I need to use them into a new ImageJ
plugin (that I'm developing under netbeans).
How can I add this jar to imageJ netbeans project?

After correct configure environment with "Debugging ImageJ Plugins in
NetBeans", I try with:

ImageJ properties --> java sources-->add Folder

and specify path, but when I try to add it follow message appears:
"Package Folder Already use in Project.
The following folders you selected are already used in this or another
project. On package folder can only be used in one project in one
package folder list (source packages or test packages)."

..probably this is not correct way..
How can I proceed?

Thank you very much,
    -nicola
Reply | Threaded
Open this post in threaded view
|

Re: develop plugins with netbeans - using jar

Sullivan, Michael J (College of Med.)
Nicola, I think you want to add the jar to the "libraries" category of
the netbeans project properties.  --- Mike

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
Nicola Bortolotti
Sent: Wednesday, July 02, 2008 6:16 AM
To: [hidden email]
Subject: develop plugins with netbeans - using jar

Dear all,
I have a little problem. I developed some Java objects (that I have
included in a jar file), and now I need to use them into a new ImageJ
plugin (that I'm developing under netbeans).
How can I add this jar to imageJ netbeans project?

After correct configure environment with "Debugging ImageJ Plugins in
NetBeans", I try with:

ImageJ properties --> java sources-->add Folder

and specify path, but when I try to add it follow message appears:
"Package Folder Already use in Project.
The following folders you selected are already used in this or another
project. On package folder can only be used in one project in one
package folder list (source packages or test packages)."

..probably this is not correct way..
How can I proceed?

Thank you very much,
    -nicola
Reply | Threaded
Open this post in threaded view
|

Re: develop plugins with netbeans - using jar

Colin Poczatek
That should work but you might run into a problem I had with some
missing swing layout libraries.  My plugin would run in netbeans but
not outside.  You can either put the both the plugin jar and the other
jar in your plugins folder, or explicitly include the later in the
build.xml file for your project.

Example:
http://wiki.netbeans.org/FaqPackagingMatisseBasedProjects

Collin

Quoting "Sullivan, Michael J" <[hidden email]>:

> Nicola, I think you want to add the jar to the "libraries" category of
> the netbeans project properties.  --- Mike
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Nicola Bortolotti
> Sent: Wednesday, July 02, 2008 6:16 AM
> To: [hidden email]
> Subject: develop plugins with netbeans - using jar
>
> Dear all,
> I have a little problem. I developed some Java objects (that I have
> included in a jar file), and now I need to use them into a new ImageJ
> plugin (that I'm developing under netbeans).
> How can I add this jar to imageJ netbeans project?
>
> After correct configure environment with "Debugging ImageJ Plugins in
> NetBeans", I try with:
>
> ImageJ properties --> java sources-->add Folder
>
> and specify path, but when I try to add it follow message appears:
> "Package Folder Already use in Project.
> The following folders you selected are already used in this or another
> project. On package folder can only be used in one project in one
> package folder list (source packages or test packages)."
>
> ..probably this is not correct way..
> How can I proceed?
>
> Thank you very much,
>    -nicola
>




The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.