[PJUG Javamail] Using data resources in jar files
rtanner at linfield.edu
Mon Jan 28 23:04:37 UTC 2008
I've built an application using iText to produce a staff/student
directory that's updated nightly, and I want to deploy it in a jar
file. iText is a Java API for building PDF files. Some of my data
comes from an LDAP server, some of it is in an included PDF (misc.
general information and the like). There is also a single JPEG and
several TrueType fonts. I'm using Ant to packager the whole thing into
a single jar archive. As far as I can tell, I've built it correctly --
all the pieces are certainly in the archive. The problem is that when I
run the application, I get run time errors because the application is
trying to load the images, PDFs, etc, from the file system instead of
the jar file.
Am I trying to do something that Java is not designed to do or is there
something special I need when I build the jar to get the behavior I want?
UNIX Services Manager
Linfield College, McMinnville OR
More information about the Javamail