java.lang.ClassNotFoundException:net.sourceforge.jtds.jdbc.Driver OSGi离开Eclipse

java.lang.ClassNotFoundException:net.sourceforge.jtds.jdbc.Driver OSGi离开Eclipse,osgi,classnotfoundexception,Osgi,Classnotfoundexception,我一直在努力让我的OSGi应用程序在eclipse之外运行。在我的eclipse环境中,代码: new net.sourceforge.jtds.jdbc.Driver() 工作正常,但当我导出应用程序时,我遇到了问题ClassNotFoundException 如果我使用oracle.jdbc.driver.OracleDriver(),它可以工作,但不适用于JTD。 库JTD和ojdbc14位于同一目录中,清单为: Manifest-Version: 1.0 Bundle-Manif

我一直在努力让我的OSGi应用程序在eclipse之外运行。在我的eclipse环境中,代码:

new net.sourceforge.jtds.jdbc.Driver()   
工作正常,但当我导出应用程序时,我遇到了问题
ClassNotFoundException

如果我使用
oracle.jdbc.driver.OracleDriver()
,它可以工作,但不适用于JTD。 库JTD和ojdbc14位于同一目录中,清单为:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: DataSource plug-in
Bundle-SymbolicName: com.xxxx.jdbc_1.0.0
Bundle-Version: 1.0.0.w7
Bundle-Activator: com.xxxx.jdbc.Activator
Bundle-Vendor: XXXX
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: javax.sql,
org.osgi.framework;version="1.3.0",
org.osgi.service.jdbc;version="1.0.0"
Bundle-ClassPath: .,
lib/commons-dbcp-1.4.jar,
lib/org.apache.commons.pool.jar,
lib/ojdbc14.jar,
lib/jtds-1.3.1.jar
有什么想法吗