You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gordon Vidaver edited this page Jun 27, 2014
·
2 revisions
Java Notes.
to compile the java example side, you'll need ant installed. After that just type "ant" and it should build and populate the out directory.
compiling libtd_java depends on finding jni.h under $JAVA_HOME and libjvm under $JAVA_HOME/jre/lib/server
For instance on the mac, the include path is /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/include and libjvm is at /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/server/libjvm.dylib
On the linux box I used, the include path was /usr/lib/jvm/java-7-openjdk-amd64/include and libjvm was under /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so - note the extra amd64 in the path
So these may have to changed to work in different environments, for instance windows.