Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to add the external jar to the rcp application
how to add the external jar to the rcp application [message #682026] Fri, 10 June 2011 09:06 Go to next message
raghav Missing name is currently offline raghav Missing nameFriend
Messages: 18
Registered: May 2011
Junior Member

hello

when i am trying to add the external jar to my rcp application

im getting the following error upon running my application
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver

I have added the jar in the project Build path i added it as an external jar

how to overcome this & fix this
Re: how to add the external jar to the rcp application [message #682134 is a reply to message #682026] Fri, 10 June 2011 13:33 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Eclipse plugins can only see other eclipse plugins (well, bundles). JDBC drivers are the worst class of 3rd party jars, because they depend on a global classpath to work correctly. Search for all the questions on including 3rd party jars in eclipse plugins, and using JDBC in eclipse plugins.

One way is to include the JDBC jar in your plugin that uses JDBC. You need to File>Import.. it into your plugin, and then use the PDE Editor>Runtime tab>Classpath section to specify the JDBC jar (and make sure . is included as well). The JDBC jar must also be included in the Build tab>Binary section.

Good luck,
PW


Re: how to add the external jar to the rcp application [message #682153 is a reply to message #682134] Fri, 10 June 2011 14:16 Go to previous message
raghav Missing name is currently offline raghav Missing nameFriend
Messages: 18
Registered: May 2011
Junior Member

i appreciate your help i'll work this way
Previous Topic:How to capture key press event over multiple views
Next Topic:Commands and the Common Navigation Framework
Goto Forum:
  


Current Time: Fri Dec 19 11:54:33 GMT 2014

Powered by FUDForum. Page generated in 0.01760 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software