-
question about import
Hi downloaded a buch of jar librabies and put the in the c:/program files...java.../etc folder and then configured netbeans to look at them so my program can access them.
my question is. Now that ive imported those jar files into my program, ,can i compile my program and send it to someone else and will it work?
or do i have to include jar libabries with my program and then zip the whole thing and send it?
im assuming its the second option from expierance.
-
Yup, you have to include the third party libraries. Also, your jar manifest has to define the classpath to include the other jars.
db
-
NetBeans IDE done all for you. First of all add the third party libraries into the project and workout your application. Once the project build you'll get the successful message (if not fix it first of all) and notify that where you can find the build package.
In the working folder you can find a folder name dist it contain your project JAR file as well as all the other third party libraries in lib folder. So basically you have to distribute that dist folder.
If you still want to keep them all in a single JAR file then using command prompt you have to create it manually. It's not facilitate by the NetBeans yet.
-
My opinion is that the folder structure maintain by the NetBeans is much much better. No need to use a single JAR all the time.