-if HAVE_JAVA_JDK
-JCC=$(JAVA_JDK)/bin/javac
-else
-JCC=javac
-endif
-
-# We still need to copy static files for out of tree and dist build
-if BUILD_JAVA_LOG4J_AGENT
-all-local: static_file JTestLTTng.class
+if TEST_JAVA_LOG4J_AGENT
+dist_noinst_JAVA = JTestLTTng.java
+endif # TEST_JAVA_LOG4J_AGENT