Article View: borland.public.jbuilder.java.api
Article #2962Native Code: invoking Java from C
From: John Newkirk
Date: Fri, 03 Jul 1998 00:00
Date: Fri, 03 Jul 1998 00:00
18 lines
1021 bytes
1021 bytes
I have been linking C routines to Java using the Java Native Interface,
and it works fine.
Now, I'm trying to create a program where C is the main program and
I link in Java routines. Everything is fine except when I go to link
the Java runtime I get undefined externals:
GetDefaultJavaVMInitArgs
JNI_CreateJavaVM
I'm linking with bccjavai.lib, but the linker isn't finding these
symbols.
What am I doing wrong? Is it that JBuilder doesn't support this form
of Native Linkage?
Thanks,
John Newkirk
Technical Details
Message-ID:
<359D6A83.28B5@worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,1b31cb34feb3d898,start X-Google-Attributes: gid1089d0,public From: John Newkirk <John.Newkirk@worldnet.att.net> Subject: Native Code: invoking Java from C Date: 1998/07/03 Message-ID: <359D6A83.28B5@worldnet.att.net> X-Deja-AN: 368536547 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Chalice Corporation Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api