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?