我正在尝试使用ODI SDK包创建ODI实例。 OdiInstance.createInstance对象创建失败。
已经包括了ODI套件中的所有罐子
1> Oracle \ Middleware \ Oracle_Home \ odi \ sdk \ lib
2> Oracle \ Middleware \ Oracle_Home \ oracle_common \ modules \ oracle.jdbc
不确定为什么会引发此错误。
WorkRepositoryDbInfo workInfo =new WorkRepositoryDbInfo(WorkRep,new PoolingAttributes());
OdiInstanceConfig odiCfg =new diInstanceConfig(masterInfo,workInfo);
OdiInstance odiInstance=OdiInstance.createInstance(odiCfg);```
Error that am getting instead of ODI instance getting created:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/persistence/sessions/Session
at odi_CON_TEST.main(odi_CON_TEST.java:52)
Caused by: java.lang.ClassNotFoundException: org.eclipse.persistence.sessions.Session
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more