Results 1 to 4 of 4
- 01-29-2009, 05:57 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 1
- Rep Power
- 0
importing other classes or using a Jar
I wrote a program that uses the apache poi functionality. i extracted and compiled all the files that are included in their source package. it all works but I am wondering if there is a better way.
When I do it this way there are about 1000 class files that end up getting compiled and ultimately distributed. I tried downloading the bin file from apache and it contains a handful of jar files but I have no idea how to use them. I tried everything I could think of.
currently it looks like this:
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
and then all the compiled class files are in matching directories.
Is there a way to point everything at the Jar file apache distributes and delete the huge amount of files and directories? Unfortunately I can't seem to search on Jar on the forum because it only has 4 letters.
Thanks in advance.
- 01-29-2009, 07:42 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Include the jarfiles on your classpath.
- 01-30-2009, 06:34 PM #3
Masijade is right. In addition, unbundling their JAR files and including select classes probably violates their license.
- 01-31-2009, 05:20 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
Importing documents
By stefanybaez in forum Advanced JavaReplies: 2Last Post: 12-22-2008, 07:24 PM -
Need help with importing classes
By Deathmonger in forum New To JavaReplies: 3Last Post: 02-07-2008, 10:03 AM -
Importing package
By bugger in forum New To JavaReplies: 5Last Post: 11-26-2007, 12:29 PM -
Importing classes
By Java Tip in forum Java TipReplies: 0Last Post: 11-06-2007, 02:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks