• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 507
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
https://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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic