Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Seamless Persistent Java w/ Oracle 8i Lite

Seamless Persistent Java w/ Oracle 8i Lite

From: Kathy Walsh <kwalsh_at_bbn.com>
Date: Thu, 22 Jul 1999 15:29:05 GMT
Message-ID: <379738B9.DA67745C@bbn.com>


Folks,

I have downloaded oracle 8i lite 4.01 from the web site. I am attempting to get seamless persistant java to work.

Have set up a simple application as follows:

import oracle.lite.jac.*;

  public class mytest {

      public static void main(String[] args) {

                    try {

           POLConnection conn = POLConnection.getConnection(args[0],
                                 POLConnection.CONNECT_READ_WRITE);

                           System.out.println("starting the new");
                                conn.beginWork();
                                kw p = new kw();
                           System.out.println("Ending the new");

                                conn.commit();
                                conn.disconnect();
                          } catch (POLException e) {

                              System.out.println(e);
                          }

                        }

                 }



import oracle.lite.jac.*;
public class kw
{

    public String name = null;

         public kw() {

             name = "kw";
         }

    public void setName (String theName) {
        name = theName;

}

    public String getName() {

        return name;

}

}

Postprocessed as follows

java oracle.lite.polp.polp -v -d d:\test\thedb.odb -src d:\test -t d:\test\ppfile -cn inc -gt kw mytest

the include file inc
- mytest
+ kw

also tried inc
- mytest
+ mytest.kw

Ran the following using xx.bat below
D:\test\ppfile>java mytest d:\test\thedb.odb starting the new
java.lang.NoSuchMethodError: oracle.pol.jac.POLConnection: method toPersistent(L
java/lang/Object;)V not found

        at kw.<init>(kw.java:8)
        at mytest.main(mytest.java:13)


xx.bat is as follows:
set
CLASSPATH=d:\test\ppfile;.;d:\odi\psepro\pro.zip;d:\odi\psepro\tools.zip;c:\cvsfiles\grid\lib;c:\cvsfiles\grid\source;D:\orawin95\LITE\CLASSES\OLJDK11.JAR;D:\orawin95\LITE\CLASSES\OLITE35.JAR;d:\orawin95\lite\classes\olite40.jar;d:\jdk1.1.7B\lib\classes.zip set PATH=%PATH%
java mytest d:\test\thedb.odb

It looks like there is an oracle library problem.

Any assistance would be appreciated.

Thank you,

kathy walsh
Sr Software Engineer
GTE Internetworking
Cambridge Ma 02138
617-873-1807 Received on Thu Jul 22 1999 - 10:29:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US