• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI : how to create DLL

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to "Other Java APIs" where JNI is covered...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic