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
Anthony LuciaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
You're beginning to duplicate questions: please don't do that
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Anthony LuciaAuthor Commented:
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
0
CEHJCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.