This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mod_gcj release, class loading problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]