This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 20038

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!