Is there a simple and portable way to build JNI - in particular the C components - with an automated build system such as ant
or make
(or both, with one calling the other) without having to manually input things like the extension of the final library file or the path to the Java includes folder to the C compiler?
Asked
Active
Viewed 713 times
0

Scott
- 1,869
- 3
- 20
- 25
1 Answers
1
This is really the case for a build environment variable. You can default it to $(JAVA_HOME)/include and $(JAVA_HOME)/lib; I think this is I did back when I used JNI.

Justin
- 4,437
- 6
- 32
- 52