Your jdbc class file should be under orion/lib

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim
Sent: Friday, April 27, 2001 9:52 PM
To: Orion-Interest
Subject: RE: can't find classes - help


elephantwalker,

Yes, I am aware of that. However, even though I am doing that - providing
entire path - the classes are still not found. That is what is giving me the
headache.

For example, let's say I have "com.myclasses.Class". and
"com.myclasses.Load"
They are both there in the directory that I should be putting my classes in.
Load does a:

try {
        Class.forName("com.myclasses.Class");
}catch(ClassNotFoundException c){
        c.printStackTrace();
}

sure enough, it says that the class was not found. I have even put the class
that is running (Load) in the Class.forName(). It throws a ClassNotFound
exception as well.

I am going to put this code on tomcat just to see if it will do the same
thing.

Later,
Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker
Sent: Friday, April 27, 2001 10:56 PM
To: Orion-Interest
Subject: RE: can't find classes - help


Jim,

somehow long ago, in a galaxy far away..no that's another story. Yes, I had
this problem sometime ago. As far as I know, the forName argument has to be
the full package path. So that would be,
Class.forName("org.somepackage.myclasses.Foo"). If you don't include the
full path...if will throw the exception you are getting.

Regards,

The elephantwalker

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim
Sent: Friday, April 27, 2001 8:26 PM
To: Orion-Interest
Subject: can't find classes - help


I have a problem that is kind of throwing a wrench into my works:

Without going into a great amount of detail - this is the problem:

I am attempting to create a new instance of a class. To do so I am using
Class.forName("the class");

All of these classes are where they are supposed to be, as far as I can
tell. For example, if my directory structure is :
orion
        >applications
                >myapp
                        >myapp-web
                                >classes
                                        >myclasses

all my classes are in myclasses. However, no matter what class I attempt to
do Class.forName() on, there is a class not found exception thrown.

Can anyone provide some insight?





Reply via email to