我正在尝试我的第一个ODI(Oracle Data Integrator)SDK java程序。 (下面)。它只是试图连接。
package dockeryOdi;
import oracle.odi.core.OdiInstance;
import oracle.odi.core.config.MasterRepositoryDbInfo;
import oracle.odi.core.config.OdiInstanceConfig;
import oracle.odi.core.config.PoolingAttributes;
import oracle.odi.core.config.WorkRepositoryDbInfo;
public class Test {
public static void main(String[] args) {
System.out.println("Creating Master and Work Repo objects...");
MasterRepositoryDbInfo masterInfo = new MasterRepositoryDbInfo(
OdiBean.Url, OdiBean.Driver,
OdiBean.Master_User, OdiBean.Master_Pass.toCharArray(),
new PoolingAttributes());
WorkRepositoryDbInfo workInfo = new WorkRepositoryDbInfo(
OdiBean.WorkRepoName, new PoolingAttributes());
System.out.println("Creating Odi Config...");
OdiInstanceConfig odiCfg = new OdiInstanceConfig(masterInfo,workInfo);
System.out.println("Connecting");
OdiInstance odiInstance=OdiInstance.createInstance(odiCfg); // <<< this line error: java.lang.NoClassDefFoundError: org/eclipse/persistence/sessions/Session
}
}
但是,我收到此错误: java.lang.NoClassDefFoundError:org / eclipse / persistence / sessions / Session
我不确定为什么这个小/测试程序试图使用org / eclipse / persisence / session
我在这个文件夹中的任何一个odi jar中都没有看到这个类 C:\甲骨文\中间件\ ODI \ ODI \ SDK \ lib中
我欢迎反馈。
答案 0 :(得分:0)
因此,似乎使用oracle.odi。*包创建Java程序的方法是将以下文件夹中的所有jar都简单地添加到类路径中
[您的ODI_HOME] \ odi \ sdk \ lib
因为odi java类中有很多依赖项层
菲: 下面是我的v12 ODI安装的jar列表activation.jar,
aopalliance.jar,
bsf.jar,
bsh-2.0b4.jar,
commons-beanutils-1.7.0.jar,
commons-codec-1.3.jar,
commons-collections-3.2.2.jar,
commons-discovery-0.4.jar,
commons-httpclient-3.1.jar,
commons-io-2.2.jar,
commons-lang-2.2.jar,
commons-logging-1.1.1.jar,
commons-net-3.3.jar,
commons-vfs-1.0.jar,
commons-vfs2-2.0.jar,
connector.jar,
cpld.jar,
enterprise_data_quality.jar,
gson-2.6.2.jar,
hsqldb.jar,
jakarta-oro-2.0.8.jar,
javolution.jar,
jms.jar,
jsch-0.1.53.jar,
json-path-2.2.0.jar,
jython.jar,
jzlib-1.07.jar,
log4j-1.2.16.jar,
odi-core.jar,
odi-sap.jar,
odi-wls-template-gen.jar,
odihapp_common.jar,
odihapp_essbase.jar,
odihapp_planning.jar,
ogg_jmx_interface.jar,
oracle.odi-jaxrsri.jar,
oracle.odi-sdk-jse.jar,
org.eclipse.jgit_3.6.2.201501210735-r.jar,
pop3.jar,
sapjco.jar,
sapjco3.jar,
slf4j-api-1.7.5.jar,
spring-aop.jar,
spring-beans.jar,
spring-context-support.jar,
spring-context.jar,
spring-core.jar,
spring-expression.jar,
spring-instrument-tomcat.jar,
spring-instrument.jar,
spring-jdbc.jar,
spring-jms.jar,
spring-orm.jar,
spring-oxm.jar,
spring-struts.jar,
spring-test.jar,
spring-tx.jar,
spring-web.jar,
spring-webmvc-portlet.jar,
spring-webmvc.jar,
svnkit-1.8.3.jar,
trilead-ssh2-1.0.0-build217.jar,
trove.jar,
woodstox.jar,
XmlSchema-1.4.2.jar,