title: How can I overcome Error in oracle.odi.core.OdiInstance.createInstance
body: <p>I am trying my first ODI (Oracle Data Integrator) SDK java program. (below).  It just tries to connect.</p>
  
  <pre><code>package docOdi;
  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);  // &lt;&lt;&lt; this line error: java.lang.NoClassDefFoundError: org/eclipse/persistence/sessions/Session
    }
  }
  </code></pre>
  
  <p>However, I get this error:
  java.lang.NoClassDefFoundError: org/eclipse/persistence/sessions/Session</p>
  
  <p>here are the jars I am using
  <a href="https://i.stack.imgur.com/MKwRp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MKwRp.png" alt="enter image description here"></a></p>
  
  <p>I am not sure why this small/test program is trying to use org/eclipse/persisence/session</p>
  
  <p>I did not see that class in ANY of my odi jars in this folder
              C:\Oracle\Middleware\ODI\odi\sdk\lib</p>
  
  <p>I welcome feedback.</p>