Compiling JNI

R

Roedy Green

My visual C++ studio 6 stopped working. I decided the try the MS
Visual C++ 8. But I can't seem to get it to access the Java JNI
include libraries. What's the trick?
 
R

Roedy Green

My visual C++ studio 6 stopped working. I decided the try the MS
Visual C++ 8. But I can't seem to get it to access the Java JNI
include libraries. What's the trick?

I have tried adding
SET include=F:\Program Files\Microsoft Visual
Studio\VC98\atl\include;F:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;F:\Program Files\Microsoft Visual
Studio\VC98\include;E:\Program Files\Java\
jdk1.6.0_10\include;E:\Program Files\Java\jdk1.6.0_10\include\win32

I have tried adding those paths to AssemblyReferenceSearchPaths
 
R

Roedy Green

My visual C++ studio 6 stopped working. I decided the try the MS
Visual C++ 8. But I can't seem to get it to access the Java JNI
include libraries. What's the trick?

Oddly I could find nothing in the help. The "trick" it turns out is
just a matter of keeping eyes peeled.

Include the following in the /I section when you first define the
project, not forced includes.
E:\Program Files\Java\jdk1.6.0_10\include;E:\Program
Files\Java\jdk1.6.0_10\include\win32

You can edit them later with project properties, C++, additional C++
Include directories.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top