Discussion:
Netbeans not copying libraries to dist/libs at compile time
Kaufies
2009-08-20 12:15:55 UTC
Permalink
Hello



I am using Netbeans to create a simple desktop application. I have include some third party libraries (jars) in the application. The problem comes at build time; the jars aren't copied to the usual folder and subsequently, the jar won't execute the application.



This has worked for me in the past, so I am convinced it was caused by something I did. I have two main classes in this project. (One of them is a server). It has to be in the project as this is a school project and only one Netbeans project folder may be handed in. I have executed the server from Netbeans (using shift+F6). I have set the main class correctly. I have also compiled different classes individually. I don't know if any of this is relevant- I want to provide as much information as possible.



The application runs from Netbeans (using F6) but, as I've stated, the jar won't execute.



I don't know if this will help, but when I usually build, it says "to run this application without Ant..." however, now when I build, I don't get that message.



The deadline for this project is looming and this is the last thing that I have to fix. Any help will be appreciated. Also, I am new to this forum and apologize if this post is irrelevant.



Many thanks

Kaufies
Naveen
2009-08-20 14:59:48 UTC
Permalink
Post by Kaufies
Hello
I am using Netbeans to create a simple desktop application. I have include
some third party libraries (jars) in the application. The problem comes at
build time; the jars aren't copied to the usual folder and subsequently, the
jar won't execute the application.
This has worked for me in the past, so I am convinced it was caused by
something I did. I have two main classes in this project. (One of them is a
server). It has to be in the project as this is a school project and only
one Netbeans project folder may be handed in. I have executed the server
from Netbeans (using shift+F6). I have set the main class correctly. I have
also compiled different classes individually. I don't know if any of this is
relevant- I want to provide as much information as possible.
The application runs from Netbeans (using F6) but, as I've stated, the jar won't execute.
I don't know if this will help, but when I usually build, it says "to run
this application without Ant..." however, now when I build, I don't get that
message.
The deadline for this project is looming and this is the last thing that I
have to fix. Any help will be appreciated. Also, I am new to this forum and
apologize if this post is irrelevant.
Many thanks
Kaufies
i had the same problem. I was using the jgraph for my graph application you
have to go to run configurations and select the folder where you have
installed the jar files.... select the lib folder .. in the lib folder
select the jar folder.... Hope this helps..
Kaufies
2009-08-20 15:53:00 UTC
Permalink
I am using downloaded look and feels. I have searched the net (this is quite a common problem) but none of the offered solutions worked for me. How did u fix it? I've heard you can work around this by modifying Ant. I usually use a text editor and the command prompt so I have no experience with IDEs or Ant.



Any help is appreciated.
Melongo Annabel
2009-08-25 01:50:07 UTC
Permalink
Please read this: http://www.netbeans.org/kb/docs/java/quickstart.html




________________________________
From: Kaufies <***@gmail.com>
To: ***@netbeans.org
Sent: Thursday, August 20, 2009 10:53:00 AM
Subject: [nbusers] Netbeans not copying libraries to dist/libs at compile time

I am using downloaded look and feels. I have searched the net (this is quite a common problem) but none of the offered solutions worked for me. How did u fix it? I've heard you can work around this by modifying Ant. I usually use a text editor and the command prompt so I have no experience with IDEs or Ant.



Any help is appreciated.

Loading...