Results 1 to 4 of 4
Thread: question about import
- 08-15-2010, 12:54 AM #1
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.Teaching myself java so that i can eventually join the industry! Started in June 2010
- 08-15-2010, 01:04 AM #2
Yup, you have to include the third party libraries. Also, your jar manifest has to define the classpath to include the other jars.
db
- 08-15-2010, 04:50 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 08-15-2010, 04:50 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
Similar Threads
-
Import
By gothrog in forum Java AppletsReplies: 2Last Post: 05-13-2010, 11:16 PM -
Can not import jxl.*
By AnnieDing in forum Java ServletReplies: 3Last Post: 01-22-2010, 03:52 PM -
import error
By amarenash23 in forum New To JavaReplies: 2Last Post: 01-15-2010, 11:32 AM -
Cant import RowSorter?
By ProgrammingPup in forum New To JavaReplies: 3Last Post: 11-17-2009, 09:52 PM -
How could i import DLL in NetBeans?
By makpandian in forum NetBeansReplies: 0Last Post: 02-13-2009, 12:53 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks