Shoban Jeyaraj wrote:
> I am new to Linux, and recently, our company has decided to do some projects
> on Linux using Java. The project involves JNI. I'd like to know how I should
> go about creating the shared libraries that Java is going to interface with.
>
> I have created the header files using javah. I have also implemented those
> function declarations on a .c file. I'd like to know a sample 'cc' command
> with the switches to compile the .c file to produce a shared library that
> could be used by Java.
>
I have written a very simple JNI program with a very simple Makefile
that you can take a look at. It is not very feature rich with compiler
options other than basic compilation and creating the shared library.
You can download it from www.kevinsworld.com, it's the JavaJoystick api.
Hope it helps,
--
Kevin White, Software Engineer
Envision Telephony
[EMAIL PROTECTED]
[EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]