This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Dynamically loaded modules
- To: tromey at redhat dot com
- Subject: Re: Dynamically loaded modules
- From: David Marceau <dmarceau at 8d dot com>
- Date: Thu, 10 May 2001 14:41:42 -0400
- CC: "'java at gcc dot gnu dot org'" <java at gcc dot gnu dot org>
- Organization: 8D Technologies Inc.
- References: <3AFA048D.B628A071@weathercom.com> <87heytt7k0.fsf@creche.redhat.com>
Tom Tromey wrote:
>
> >>>>> "Jim" == jim <jim@weathercom.com> writes:
>
> Jim> How well do programs compiled with gcj handel serialized objects
> Jim> and JavaBeans? I'm working on a app that needs to load modules
> Jim> on startup to modify it's GUI and behavior. Any ideas how gcj
> Jim> would handle that?
>
> gcj serialization is compatible with the JDK. We believe it is
> complete, but you will probably find the occasional bug.
>
> I don't know anything about beans. gcj doesn't have any java-style
> GUI capability (no AWT or Swing -- but there is a gnome-gcj).
>
> libgcj can load bytecode just like other VMs, at least on platforms
> where the interpreter works (x86, alpha, ppc, ia64). libgcj can also
> load precompiled java code (shared objects).
>
> Tom
Hi there Mr. Tromey :)
Being that you're talking about loading shared objects with libgcj, I
have a question.
Question:
I have libsampNat.so which contains an CNI-based servic(not JNI) that I
compiled with gcj -shared.
How do I run gij in order to have sample.class loadLibrary("sampNat")
like the jni example gets loaded up in the gcj/JNI example in the gcj
faq.
The files in question are attached.
Thanks for taking the time.
--
Santé bonheur :)
David Marceau
sample.java
sampNat.cc
runit2.scr
Makefile
sample.h