This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI " Watch "JNI " New topic
Author

JNI

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


Regards,
Pankaj Patil
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

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

Henry


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

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.
 
wood burning stoves
 
subject: JNI
 
Similar Threads
beginners JNI problem how to create dll
Can't link to JNI_CreateJavaVM?
Creating VM in C
JNI Dependent Libraries Not Found
jni.h