Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Visual C DLL and Java files

Status
Not open for further replies.

pecan204

Programmer
Jan 25, 2001
24
0
0
US
Hello,

I have been trying to get the Java JNI - C DLL sample working using MS Visual C. The c++ file I used could not find the Java.h file on compile.

Has anyone tried this? Can anyone comment about path correctness or steps to complete this?

I have also tried it without the path and it still did not find it.

Thanks

Here is the C++ file********************

#include <jni.h>
#include &quot;C:\jdk1.3.1\JNI\Hello\Hello.h&quot;
#include <stdio.h>

JNIEXPORT void JNICALL
Java_Hello_displayHello(JNIEnv *env, jobject obj)
{
printf(&quot;Hello !\n&quot;);
return;
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top