Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Eclipse and external jars

Posted on 2014-07-10
3
Medium Priority
?
303 Views
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: 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
0
Comment
Question by:Anthony Lucia
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 40189282
You're beginning to duplicate questions: please don't do that
0
 

Author Comment

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

Expert Comment

by:CEHJ
ID: 40190655
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

572 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