🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8750

Re: Java JNI Interface Functions

#8750
From: Michel Leunen
Date: Wed, 22 Sep 2004 19:36
24 lines
1804 bytes
Peter Strutt wrote:

> Has anybody tried to use the JDK JNI functions to interface C (or C++) to a Java Virtual Machine environment?

No, but...

> 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?

No. it was created probably with a microsoft compiler. Lib files from 
Borland and Microsoft are not compatible.
Instead, use implib against jvm.dll to create a borland compatible lib.

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, C++BuilderX, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <4151d432$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41519758$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,700673985c524c75
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 22 Sep 2004 21:36:19 +0200
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910
X-Accept-Language: fr-be, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Java JNI Interface Functions
References: <41519758$1@newsgroups.borland.com>
In-Reply-To: <41519758$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.241.139.186
Message-ID: <4151d432$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095881778 81.241.139.186 (22 Sep 2004 12:36:18 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail