Article View: borland.public.cppbuilder.nativeapi
Article #8746Java JNI Interface Functions
From: Peter Strutt
Date: Wed, 22 Sep 2004 15:16
Date: Wed, 22 Sep 2004 15:16
12 lines
1470 bytes
1470 bytes
Has anybody tried to use the JDK JNI functions to interface C (or C++) to a Java Virtual Machine environment? I'm calling the JNI_CreateJavaVM function and get: [Linker Error] Unresolved external '_JNI_CreateJavaVM' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\MY PROJECTS\COMPASS BENCHMARK\WINDOWS\JNI_TEST.OBJ at link time. OK, so I then include the JDK library jvm.lib in the project, re-make, and then get: [Linker Error] 'C:\J2SDK1.4.2_04\LIB\JVM.LIB' contains invalid OMF record, type 0x21 (possibly COFF) Is this the correct library?
Technical Details
Message-ID:
<41519758$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,700673985c524c75,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Strutt" <peter.strutt@northgate-is.com> Sender: "Peter Strutt" <peter.strutt@northgate-is.com> Reply-To: "Peter Strutt" <peter.strutt@northgate-is.com> Subject: Java JNI Interface Functions Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 152.114.1.4 X-Forwarded-For: 152.114.1.4 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41519758$1@newsgroups.borland.com> Date: 22 Sep 2004 08:16:40 -0700 X-Trace: newsgroups.borland.com 1095866200 207.105.83.66 (22 Sep 2004 08:16:40 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail