This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: mod_gcj release, class loading problem
- From: Tom Tromey <tromey at redhat dot com>
- To: Hannes Wallnoefer <hannes at helma dot at>
- Cc: java at gcc dot gnu dot org
- Date: 03 Aug 2004 11:26:59 -0600
- Subject: Re: mod_gcj release, class loading problem
- References: <41099B88.1050703@helma.at>
- Reply-to: tromey at redhat dot com
>>>>> "Hannes" == Hannes Wallnoefer <hannes@helma.at> writes:
Hannes> Some months ago I announced the mod_gcj project on this list, a
Hannes> project to run Java within Apache using libgcj. Now there's some
Hannes> usable code at last. If you're interested you can get it at
Hannes> <http://mod-gcj.sourceforge.net/>.
Nice!
Hannes> I also have a problem that I'm stuck with, and maybe somebody on the
Hannes> list can help me. The thing is I can load classes from class or jar
Hannes> files using a custom URLClassLoader, but as soon as I try to get a
Hannes> class that is compiled and linked into the native binary using
Hannes> Class.forName() or ClassLoader.loadClass() (no matter if I use the
Hannes> system ClassLoader or my own) I get a ClassNotFoundException. I know
Hannes> the class is there because I can create an instance using new.
Hannes> Any ideas what may be wrong here?
What platform are you on? And what version of gcj?
All I can think of is that class registration could be failing. `new
Name' would continue to work, since this is emitted as a direct
reference to Name.class and handled by the linker -- but reflection
wouldn't be able to find the class.
That's just a guess though. You'd have to do some debugging to find
out for real.
Tom