Results 1 to 3 of 3
Thread: JNI beginner
- 04-02-2011, 07:59 PM #1
JNI beginner
hi
i'm an experienced Java programmer
but a beginner in jni
i use a library that calls System.loadLibrary("xxx");
i have *.c and *.h source code
i use Win XP 32 bit
how can i create the specified xxx to make the library workMattery - free online strategy game
-
You need to create a JNI bridge program (not sure of the official name for it) that will allow you to bridge Java to the C library. Java has a utility for creating your header file. Go through the JNI tutorials and even online books (Google will find these for you) for the details.
- 04-04-2011, 12:53 AM #3
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
Or take a look at JNA. JNA provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code—no JNI or native code is required.
Ray
Similar Threads
-
Need Help - Beginner
By ooooohmaul in forum New To JavaReplies: 4Last Post: 08-08-2010, 04:22 AM -
Beginner, need a little help
By jimmy-lin in forum New To JavaReplies: 6Last Post: 10-10-2009, 01:00 AM -
beginner here...help please
By shroomiin in forum New To JavaReplies: 6Last Post: 09-15-2009, 11:06 PM -
Beginner needs help!
By Polyy in forum New To JavaReplies: 1Last Post: 11-27-2008, 05:12 AM -
almost done...beginner needs help plz..
By shongo in forum New To JavaReplies: 15Last Post: 11-10-2008, 08:14 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks