🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15631

borland.public.jbuilder.java.language

#15631
From: Nathan Craddock
Date: Tue, 18 May 1999 00:00
62 lines
3120 bytes
Hello:

 I've been working through the JNI examples in the Java Tutorial, and I've
come across a problem with compiling the HelloWorldImp.c file in BC++5.01.

 Basically, bcc32 spews a ton of errors on the jni.h & the jni_md.h.  I've
append the errors below:

----------------------------
Borland C++ 5.0 for Win32 Copyright (c) 1993, 1996 Borland International
HelloWorldImp.c:
Error d:\java\jdk1.2.1\include\win32\jni_md.h 23: , expected
Error d:\java\jdk1.2.1\include\jni.h 115: Declaration missing ;
Error d:\java\jdk1.2.1\include\jni.h 314: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 318: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 396: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 401: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 447: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 467: Type name expected
Error d:\java\jdk1.2.1\include\jni.h 518: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 522: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 560: Parameter names are used only with
a function body
Error d:\java\jdk1.2.1\include\jni.h 580: Type name expected
Error d:\java\jdk1.2.1\include\jni.h 642: Declaration missing ;
Error d:\java\jdk1.2.1\include\jni.h 660: Type name expected
Error d:\java\jdk1.2.1\include\jni.h 677: Type name expected
Error d:\java\jdk1.2.1\include\jni.h 694: Type name expected
Warning HelloWorldImp.c 10: Parameter 'env' is never used in function
Java_HelloWorld_displayHelloWorld
Warning HelloWorldImp.c 10: Parameter 'obj' is never used in function
Java_HelloWorld_displayHelloWorld
*** 16 errors in Compile ***
Error: Could not find file 'HelloWorldImp.obj'
----------------------------
The commandline I use is "bcc32 -Id:java\include -Id:\java\include\win32 -c
HelloWorldImp.c"

I should also mention, everything works fine with M$'s cl.exe, where I use
"cl -Id:\java\include -Id:\java\include\win32 -LD
HelloWorldImp.c -Fehello.dll"

Thanks in advance.


ACY

P.S. One thing I'd also like to mention is, I've already done a rather
extensive search both on the Borland search page, searching newsgroup
postings on the BC++ and the JBuilder newsgroups, and Developers.href.com.
And while these issues are somewhat addressed, there have been no clear
answers given.

P.S.S. I should also mention, I've tried the same in the IDE with the same
results.
Technical Details
Message-ID: <7ht3fh$d0s16@forums.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: f74b3,9bf6b510e6d3235,start
X-Google-Attributes: gidf74b3,public
From: "Nathan Craddock" <nathan@tanet.net>
Subject: borland.public.jbuilder.java.language
Date: 1999/05/18
Message-ID: <7ht3fh$d0s16@forums.borland.com>
X-Deja-AN: 479075462
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language