Fix: java library to use user define JDK at compile time
authorDavid Goulet <dgoulet@efficios.com>
Mon, 11 Nov 2013 17:52:23 +0000 (12:52 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 12 Nov 2013 23:48:31 +0000 (18:48 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
liblttng-ust-java/Makefile.am
liblttng-ust-java/README

index 57b95323ff9c8ae717c28897d579b59691dbeb74..8bf63499ec144ccf226e0c86cb0013f18e4168c5 100644 (file)
@@ -8,6 +8,12 @@ nodist_liblttng_ust_java_la_SOURCES = org_lttng_ust_LTTngUst.h
 dist_noinst_DATA = LTTngUst.java
 liblttng_ust_java_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
 
+if HAVE_JAVA_JDK
+JCC=$(JAVA_JDK)/bin
+else
+JCC=javac
+endif
+
 all: LTTngUst.class org_lttng_ust_LTTngUst.h liblttng-ust-java.jar
 
 clean-local:
@@ -18,12 +24,12 @@ clean-local:
 LTTngUst.c: org_lttng_ust_LTTngUst.h
 
 LTTngUst.class: LTTngUst.java
-       javac -d "$(builddir)" "$(srcdir)/LTTngUst.java"
+       $(JCC)/javac -d "$(builddir)" "$(srcdir)/LTTngUst.java"
 
 org_lttng_ust_LTTngUst.h: LTTngUst.class
-       javah org.lttng.ust.LTTngUst
+       $(JCC)/javah org.lttng.ust.LTTngUst
 
 liblttng-ust-java.jar: LTTngUst.class
-       jar cf liblttng-ust-java.jar org/*
+       $(JCC)/jar cf liblttng-ust-java.jar org/*
 
 endif
index 4b4d2c6ec45a99c217243661b1cdb47312540228..e3ad8494e48cf3cfcaacc8b4d53533cf3f49b25f 100644 (file)
@@ -2,15 +2,13 @@ This directory contains a simple API for instrumenting java applications.
 
 Configuration examples to build this library:
 
-dependency: sun-java6-jdk
-./configure --with-java-jdk=/usr/lib/jvm/java-6-sun --with-jni-interface
-
-dependency: openjdk-6-jdk
-./configure --with-java-jdk=/usr/lib/jvm/java-6-openjdk --with-jni-interface
-
-dependency: gcj-4.4-jdk
-./configure --with-java-jdk=/usr/lib/jvm/java-gcj --with-jni-interface
+dependency: openjdk-7-jdk
+./configure --with-java-jdk=/usr/lib/jvm/java-7-openjdk --with-jni-interface
 
+Note that the OpenJDK 7 is used for development and continuous integration thus
+we directly support that version for this library. However, it has been tested
+with OpenJDK 6 also. Please let us know if other Java version (commercial or
+not) work with this library.
 
 After building, you can use the liblttng-ust-java.jar file in a Java project.
 It requires the liblttng-ust-java.so* files (which get installed when doing
This page took 0.027015 seconds and 4 git commands to generate.