![]() |
How to create executable jar in NetBeans IDE
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? Thanks in advance, Seung |
Re: How to create executable jar in NetBeans IDE
> 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... |
Re: How to create executable jar in NetBeans IDE
Karel Suikers <karel.suikers.spamniet@cashette.com> 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. -- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2 |
Re: How to create executable jar in NetBeans IDE
"Oscar kind" <oscar@danwa.net> schrieb im Newsbeitrag news:ofh4f2-sh9.ln1@odin.asgard... > Karel Suikers <karel.suikers.spamniet@cashette.com> 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 |
Netbeans!
Why use a Eclipse if you can use a well-suited, fast and optimized out-of-the-box-IDE?
Easy as pie: (Netbeans 5.5) right-click your project, "set main project", select your project, "File", "PROJECTNAME Properties", "Run", set your main class, "Libraries", "Add JAR/Folder", select your wanted libs, do a CLEAN build, enter the build-path, enter /dist and be amazed --> DONE! No Modifications/Hacks/buggy DiY-IDE´s, no cry :flute: |
Do you know how to create a Jar in Netbeans that includes all dependencies?
|
Thanks!
Many thanks to "tha_specializt" for his post.
|
Quote:
Hi, this sounded so good. I have had so much trouble with this. I just can't seem to get my jar file runnable. I have followed you steps, I do my clean and build, but when I try to run it from the dist folder is still doesn't work..! I think I might not add the right "libs".. what do you mean exactly by this? Sorry, I am very new to Java and netbeans...! |
very clear and simple tha_specializt.. thank you
|
thankyou
thanks just what i was looking for
|
| All times are GMT. The time now is 06:32 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.