Category Archives: JNI

C++ call java.util.HashMap

//============================================================================ // Name        : usejavahashmap.cpp // Author      : Onega // Description : C++ call java.util.HashMap // JNI Doc: http://download.oracle.com/javase/6/docs/technotes/guides/jni/index.html // g++ -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/jvm/java-6-openjdk/include/linux -O0 -g3 -Wall -c -fmessage-length=0 -v -MMD -MP -MF”src/usejavahashmap.d” -MT”src/usejavahashmap.d” -o “src/usejavahashmap.o” “../src/usejavahashmap.cpp” // g++ -L/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server/ -v … Continue reading

Posted in CPP, Java, JNI | Leave a comment