Steve,

Thank you, you nailed this one for me.  I removed the
OracleEOAdaptor.framework from the project, and I added the following to
my ApplicationDelegate.java

/* ApplicationDelegate */

import com.apple.yellow.foundation.*;
import com.apple.yellow.application.*;
import com.apple.yellow.eoaccess.EOModelGroup;

public class ApplicationDelegate extends NSObject {

    MainDocument mainDocument;

    public void applicationDidFinishLaunching(NSNotification
aNotification)
    {
          // Make sure all my EOModels are loaded !!!!
        EOModelGroup mg = EOModelGroup.defaultGroup ();

        // NSSystem.log( mg.modelNames().toString() );

        mainDocument = new MainDocument();
    }
}

-----Original Message-----
From: Stephen Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 24, 1999 12:07 PM
To: Multiple recipients of list
Subject: RE: EOF Java Applications on NT


For some reason the eomodel is not loading.   Try loading the model 
programmatically.  For example, I was able to get this to work by
placing 
the following statement in the constructor for my java interface 
controller.:

EOModel model = new 
EOModel("d:/u/gibbss/appleprojects/javaEOApplication/Movies.eomodeld");

I haven't bothered to implement anything more generic.

I hope this helps.

Stephen Gibbs
-----Original Message-----
From:   Aspinall, David (CAP, ITS, CA) [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, February 16, 1999 6:50 PM
To:     Multiple recipients of list
Subject:        EOF Java Applications on NT


I tried searching the Omnigroup Archives but I was unable to categorize
this problem and I didn't find anything.  I have built a simple EOModel
and custom Java objects in a framework.  And I was building a simple
test application to review the model, but I have run into a problem.

Once I added a display group and tried to populate a table with data (it
works in InterfaceBuilder test mode), I get

JavaDebug>>

  Uncaught exception: java.lang.ClassNotFoundException OracleAdaptor
        at com.apple.misc.StandardClassLoader.loadClass
(StandardClassLoader.java:448)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:312)
        at MainDocument.<init>(MainDocument.java:13)
        at
ApplicationDelegate.applicationDidFinishLaunching(ApplicationDelegate.ja
va:17)

So I added the OracleAdaptor framework to the application and I get an
alert panel with

com/apple/yellow/eocontrol/EOClassDescription
Stack Trace:
java.lang.InstantiationException:
com/apple/yellow/eocontrol/EOClassDescription

and

JavaDebug>> Exception: java/lang/InstantiationException (can't backtrace
because of a missing context)

I assume I have missed something simple in with either my GELogin JAVA
framework, or something with the LoginTest JAVA application.  Has anyone
else hit this?

David

Reply via email to