• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting to DB2 using a packaged .jar Application.

 
ahmed yehia
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
After packaged my Application to a .jar file, I was no longer able to connect to the data base.

I'm using DB2 and my application is a standalone GUI app and the IDE is Eclipse.

Here is the driver and url I m currently using in the IDE.


I would like to know what are the procedures to sucessfully package an application and gain connection to the DB.
[ August 23, 2008: Message edited by: Ahmed Badawy ]
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you added the driver jar file to the application class path? You can do that by using a Class-Path entry in the manifest file.
 
ahmed yehia
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf.

Also I found that the IDE can generate a Runnable jar which gives access to the DB, but was good to know how it works at the back end
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic