File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar within a Jar

 
jeff wisgo
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application which uses a mysql connector packaged as a .jar file, and I would like to put my entire application into a Jar file (including the connector jar). I tried putting the connector Jar within my project Jar, but then when I executed the project Jar, it was not able to find the database connector class. Does anyone know the best way to do this? Someone told me I could probably unzip the connector Jar into my project directory, but this seems a messy way to do things.

Thanks.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Declare the jar in your MANIFEST.MF in the
Class-Path: mySql.jar
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic