Eclipse and external jars

Posted on 2014-07-10
Last Modified: 2014-07-11
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: : (org.mule.module.db.internal.domain.connection.Connect
ionCreationException). Message payload is of type: String

Open in new window

The  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 ?

Question by:Anthony Lucia
    LVL 86

    Accepted Solution

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

    Author Comment

    by:Anthony Lucia
    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
    LVL 86

    Expert Comment

    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

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now