Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Pro c Call from JNI

Thread view: 
abhi147@gmail.com - 28 Aug 2006 11:42 GMT
Hi ,

       I am trying to call a ProC function from JNI . I am using the
demo_proc.mk file to include the Java path  , but it is giving an error
that

Error at line 7, column 10 in file source.pc
#include <jni.h>
.........1
PCC-S-02015, unable to open include file

Can anyone tell me where should I include the java path so as to
include "jni.h"

Thanks!
Gordon Beaton - 28 Aug 2006 11:49 GMT
> Can anyone tell me where should I include the java path so as to
> include "jni.h"

You need two include paths:

 <java>/include
 <java>/include/<system>

where <java> is the root of your Java installation, and <system> is
one of linux, windows, solaris, etc as appropriate.

The normal way to add include paths is to specify them with -I on the
compiler command line. I have no idea whether that's true of ProC or
not.

/gordon

Signature

[ don't email me support questions or followups ]
g o r d o n  +  n e w s  @  b a l d e r 1 3 . s e



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.