For example, if Java is installed, your code file is called MyClass1.java and the Command Prompt is already opened, then type:
javac MyClass1.java -h .
This will generate MyClass1.class and MyClass1.h. Use #include "MyClass1.h"
in your C++ code to implement the native functions according to Java documentation.