Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI : how to create DLL

 
Muhammad Uzair Baig
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys

Please tell me that how can i create .dll file for JNI by using Turbo C compiler. i already create .h file just last step remaining of creating DLL by us Turbo C compiler please help me in.


Best Regards
Uzair
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to "Other Java APIs" where JNI is covered...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never used Turbo C... Searching through Google, though, it appears that it is old and there isn't a way to produce DLLs with it (directly) since it was only made for producing DOS programs and not Windows programs.

I have used the MinGW C compiler to create DLLs for JNI before. There's even an entry in their FAQ specifically on how to create a DLL for JNI.

Not being familiar with Turbo C, or the program you're trying to create a JNI interface to, I'm not sure how much of a problem it would be to port your program from Turbo C to MinGW, but this Turbo C to GCC Porting Tool might be helpful. (GCC code should work in MinGW, too.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic