"Oscar kind" <> schrieb im Newsbeitrag
news

fh4f2-...
> Karel Suikers <> wrote:
>>> I used to use Jbuilder for JAVA development. In Jbuilder, I was able
>>> to create executabe jar that has all the libraries in and run on its
>>> own. How do you create same kind of executable jar with NetBeans?
>>
>> I do it with an ant script. I hope someone can tell me how to do it with
>> three mouseclicks...
>
> In my IDE, I use two mouse clicks (sorry, not three). These mouse clicks
> start ANT using a similar build script.
>
> Many IDE's provide ANT support these days, of which JBuilder is one
> (IIRC). I know for certain that Eclipse and IntelliJ do.
>
In Eclipse you can use the Fat-Jar Eclipse Plug-In
http://fjep.sourceforge.net .
This plugin allows building an executable jar file containing all referenced
jars,
classes and subproject. The information is gathered from the project
classpath.
After you have configured and saved the settings for a project (Main-Class.
....),
you can rebuild the "Fat-Jar" with one mouse-click: Right-Click on the
settings -> Fat-Jar -> Quick-Build

Also you can export the current settings as an ANT script.
Best regards,
feri