File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes This one is beginning to JAR me!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "This one is beginning to JAR me!!!" Watch "This one is beginning to JAR me!!!" New topic
Author

This one is beginning to JAR me!!!

Chut Murza
Greenhorn

Joined: Feb 06, 2003
Posts: 7
Hey all, my assignment is (well, at least i thought) complete and packed into a JAR and just about ready to go; but, I have a slight problem. I can't get the jar file to read from the database file that is embedded inside of itself, like it doesn't even exist. But it will work if the database file is in the same directory as the executable JAR... Now I have tried many combinations with the Classpath: attribute in my MANIFEST.MF file but still no luck... Any help will be tremendously appreciated!!!
Thanks,
Chuck
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
I would leave db.db outside of the jar file.
If you access it in the jar file you will have to treat it as a resource that you load with the ClassLoader, and then get it into a File on the file system since that is what Data is expecting to work with.
-BJ
 
Don't get me started about those stupid light bulbs.
 
subject: This one is beginning to JAR me!!!
 
Similar Threads
Executing my .java in package
packing an acces file with my jar
Packaging of the server and client
JAR files dont like me...
Jar file for DB2 Connection?