*
The moose likes Other JSE/JEE APIs and the fly likes JNI : how to create DLL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI : how to create DLL" Watch "JNI : how to create DLL" New topic
Author

JNI : how to create DLL

Muhammad Uzair Baig
Greenhorn

Joined: Mar 02, 2004
Posts: 12
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

Joined: Oct 18, 2000
Posts: 4121

Moving to "Other Java APIs" where JNI is covered...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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.)
 
 
subject: JNI : how to create DLL
 
Similar Threads
JNI
create dll file
How to create dll in JNI ?
creating dll
JNI and DLL