This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: swt controlexample
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Erik Poupaert <erik dot poupaert at chello dot be>
- Cc: Ranjit Mathew <rmathew at hotmail dot com>, <java at gcc dot gnu dot org>
- Date: Sat, 4 Jan 2003 00:46:38 -0500 (EST)
- Subject: Re: swt controlexample
On Fri, 3 Jan 2003, Erik Poupaert wrote:
> Jeff Sturm wrote:
> >>>> I'm wondering if it would be easier to use JNIRegisterNatives and avoid
> >>>> the whole libltdl mess, at least when compliling to a single image
> (.exe)
> >>>> without any dependence on external libraries.
>
> I've grepped the gcc sourcetree, and there seems no way to invoke
> RegisterNatives() from java. It seems like a purely native method:
Right. I've used it before together with JNI invocation, something like:
a) create a VM
b) load classes with native methods
c) register native methods
d) invoke the main class
Jeff