S
S
sanek20052020-12-23 21:16:17
Java
sanek2005, 2020-12-23 21:16:17

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

2 answer(s)
V
Vasily Bannikov, 2020-12-23
@vabka

You need to compile the library, not the executable program. Here C++ only complements Java, not replaces

E
Elmo Sputterspark, 2020-12-23
@Sputterspark

This answer is almost a step-by-step instruction, but instead javahyou need to usejavac -h

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question