Answer the question
In order to leave comments, you need to log in
How to compile c++ code for JNI?
I wrote a native method implementation in c++. Now I do not understand how to compile under Windows. In all guides, the entry point was not written, and without it it does not compile
Answer the question
In order to leave comments, you need to log in
You need to compile the library, not the executable program. Here C++ only complements Java, not replaces
This answer is almost a step-by-step instruction, but instead javah
you need to usejavac -h
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question