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]

Re: Dynamically loaded modules


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


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