3rd party class not found [message #464340] |
Fri, 02 March 2007 05:33  |
Eclipse User |
|
|
|
Originally posted by: jorgen.ekstrom.bredband.net
Hi,
I'm converting my SWT/JFace application into an RCP application and have
managed to convert
all my subprojects into plugins. For 3rd party packages, such as the
com.mysql.connector I have created
JAR wrapper plugins and added them as dependencies to the RCP product.
Everything looks ok when looking at the dependencies and exported packages
etceteras, but when launching
the application it complains that the MySQL Driver class cannot be found,
see below.
Any hints which might help me solve this issue are welcome!
BR
Jorgen
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:347)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.ignitech.util.jdbc.ThreadSafeConnectionManager.loadDrive r(ThreadSafeConnectionManager.java:53)
....
|
|
|
Re: 3rd party class not found [message #464432 is a reply to message #464340] |
Mon, 05 March 2007 09:28  |
Eclipse User |
|
|
|
Jörgen Ekström wrote:
> Hi,
>
> I'm converting my SWT/JFace application into an RCP application and have
> managed to convert
> all my subprojects into plugins. For 3rd party packages, such as the
> com.mysql.connector I have created
> JAR wrapper plugins and added them as dependencies to the RCP product.
>
> Everything looks ok when looking at the dependencies and exported packages
> etceteras, but when launching
> the application it complains that the MySQL Driver class cannot be found,
> see below.
>
> Any hints which might help me solve this issue are welcome!
1) You should check, whether you have exported all required packages.
2) A reason might be, that the thirdparty packages has some implicit
classloader requirements, which are not fulfilled in an RCP application.
Depending on the problem you might solve this via buddy classloading, see
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/bundle_manifest.html
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/buddy_loading.html
Greetings from Bremen,
Daniel Krügler
|
|
|
Powered by
FUDForum. Page generated in 0.02840 seconds