mod_gcj release, class loading problem

Tom Tromey tromey@redhat.com
Tue Aug 3 17:43:00 GMT 2004


>>>>> "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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /