This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes JNI - Creating DLL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI - Creating DLL" Watch "JNI - Creating DLL" New topic
Author

JNI - Creating DLL

Sri Ram
Greenhorn

Joined: Jul 27, 2001
Posts: 7
I want to build a simple JNI Application that calls a C funtion. But the thing is that i dont know how to create DLL for the C program.
I dont want to use Visual C++ for creating the DLL
How can create DLL for that C function using Turboc or in one of the compilers used in Linux
Nura Horne
Ranch Hand

Joined: Jul 26, 2001
Posts: 40
go to your linux dist type:
<code>man gcc</code>
If my memory serves, an -s switch is used to create a dll (actually they're called .so under linux)
Once you done this you'll meed to read about something called LDCONFIG (man ldconfig) that is the mechanism used by Linux to register dynamic librarys.
I learned everything I needed to know from the man pages, only I can't remember the details as it was a while ago
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JNI - Creating DLL
 
Similar Threads
Calling .dll files methods in Java Code
JNI : how to create DLL
create dll file
Invoking methods within a DLL written in VB
creating a dll out of a java class