File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans: Externels jar files are not included after Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans: Externels jar files are not included after "build"" Watch "Netbeans: Externels jar files are not included after "build"" New topic
Author

Netbeans: Externels jar files are not included after "build"

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Hi,

I am using netbeans IDE 7.1. I created a software called "Test" using Napkin Look and Feel. I downloaded the napkin jar file correclty, attached it to my project correctly and my application is running inside netbeans perfectly fine. But, The case is, when I build my project to get the "Test.jar" output, I can see that netbeans has included napkin jar file in a seperated folder called "lib" !!! This is not what I needed. I need ONE jar file, with all the features I used in napkin look and feel. The sad case is, the "Test.jar" file is not even running. It is throwing "class not found" or something similar when I ran it (I ran it using cmd to catch the error message). I think the napkin jar file cannot be located. I really need ONE, WORKING jar file. Not two jar files. Please help..How could I produce JUST A ONE jar file with napkin library??


Are you better than me? Then please show me my mistakes..
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

What you need is a runnable JAR. I know how to get one in Eclipse, and you can create them easily using Ant or Maven (it's trivial in Maven). But I don't see an option for this In NetBeans. I even looked to see if there was a plugin that did this.


JBoss In Action
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Peter Johnson wrote:What you need is a runnable JAR. I know how to get one in Eclipse, and you can create them easily using Ant or Maven (it's trivial in Maven). But I don't see an option for this In NetBeans. I even looked to see if there was a plugin that did this.


oh no



There must be a way. Please help
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Do you prefer a Maven or an Ant solution? (I assume that switching to Eclipse is out of the question.)
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Peter Johnson wrote:Do you prefer a Maven or an Ant solution? (I assume that switching to Eclipse is out of the question.)


Hello Peter,

Thanks a lot for trying to help me. However, I found a solution, it was in an old thread in CodeRanch!! It is in here
http://www.coderanch.com/t/419419/vc/there-way-netbeans-include-external

I used the .bat file provided by a user, and it works perfectly fine!! Thanks a lot for trying to help me, I really appreciate it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans: Externels jar files are not included after "build"