🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2665

embedding a JVM from a DLL (JNI Invocation API)

#2665
From: Reggie Guevara
Date: Sat, 29 Jul 2000 00:00
17 lines
1182 bytes
Hi,

I'm trying to embed a JVM via a DLL. I have no problem if I use the invoke.c
and prog.java example, which uses a console app, and simply "returns" after
the println in main(), thereby shutting down the JVM. I am then returned to
normal DLL execution.

But when I use a GUI java app, returning from main() does NOT shutdown the
JVM, because the GUI is now waiting for "events", which is good. But when I
exit the java app, it uses System.exit(1) or System.exit(0). Unfortunately,
this does not only shutdown the JVM, it terminates the DLL as well.

How do I shutdown a GUI java app & JVM, and return to normal DLL execution?

TIA,

Reggie
Technical Details
Message-ID: <8ltcst$gnv11@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,75e6464f697b2701,start
X-Google-Attributes: gid1089d0,public
From: "Reggie Guevara" <reggiehg@cyberdude.com>
Subject: embedding a JVM from a DLL (JNI Invocation API)
Date: 2000/07/29
Message-ID: <8ltcst$gnv11@bornews.borland.com>
X-Deja-AN: 652029715
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.api