Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you prefer a Maven or an Ant solution? (I assume that switching to Eclipse is out of the question.)
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic