Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI - Creating DLL  RSS feed

 
Sri Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!