The moose likes Java in General and the fly likes JNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI " Watch "JNI " New topic


pankaj patil
Ranch Hand

Joined: Dec 19, 2004
Posts: 98
Can Any one tell me how to create the .dll file

On Win32, the following command builds a dynamic link library hello.dll using Microsoft Visual C++ 4.0:

cl -Ic:\java\include -Ic:\java\include\win32
-LD HelloWorldImp.c -Fehello.dll

And how to set the Path

Pankaj Patil
Henry Wong

Joined: Sep 28, 2004
Posts: 20169

Sorry, but didn't you just answer your own question?


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Abhishek Chaudhari

Joined: Feb 09, 2005
Posts: 11
Microsoft VC++ 6.0 has vcvars32.bat. This file sets the environment.
If that's not there, u need to set path for the cl.exe in visual studion installation directory inside vc\bin. Other path needed is - path for one dll not sure about the name whcih is in visualstudio\common.
I agree. Here's the link:
subject: JNI
It's not a secret anymore!