Link to home
Start Free TrialLog in
Avatar of Anthony Lucia
Anthony Lucia

asked on

Eclipse and external jars

I added an external jar to my User Library.

Then I added a reference to the User Library to my project build path

Then I created a JDBC connected, and it tested successfully

However, when I run the flow as a program I get the following error

java.sql.SQLException: Error trying to load driver: com.ibm.db2.jcc.DB2Driver :
com.ibm.db2.jcc.DB2Driver (org.mule.module.db.internal.domain.connection.Connect
ionCreationException). Message payload is of type: String

Open in new window


The  com.ibm.db2.jcc.DB2Driver  is the driver contained within the jar file I imported into the User Library.  And with that user library connected in the build path I can successfully test the JDBC connection

However, when I run it as an external app, I get an error stating that it can not find the driver

How can I get my compiled apps to see the same libraries (jars) as defined within my project ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony Lucia
Anthony Lucia

ASKER

I actually thought I was asking slightly different questions.  I apologize.

I will accept this one (I cant delete it now), and will delete the other one, and repost a single thread

My apologies
I will accept this one (I cant delete it now),
That's not brilliant as it's not an answer, but we'll see what the mods say