Hi Bernd, yes, we only need Java for CTD packacking since the jar command included with the JDK distribution allows us to create ZIP files (jar files are just zip files). We use CMake's standard find_package script that gets installed when you install CMake on your Linux. This in turn means that the problem is 99.99% on the side of your CMake version or the software installation on your Linux boxen.... Looking into the FindJava.cmake file it looks like it's only a problem in CMake's error message (see bottom). To fix this, you would have to install the JDK. HTH, Manuel IF(Java_JAVA_EXECUTABLE) EXECUTE_PROCESS(COMMAND ${Java_JAVA_EXECUTABLE} -version RESULT_VARIABLE res OUTPUT_VARIABLE var ERROR_VARIABLE var # sun-java output to stderr OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE) IF( res ) IF(${Java_FIND_REQUIRED}) MESSAGE( FATAL_ERROR "Error executing java -version" ) ELSE() MESSAGE( STATUS "Warning, could not run java --version") ENDIF() ELSE() ________________________________________ From: Bernd Jagla [bernd.jagla@pasteur.fr] Sent: Tuesday, October 08, 2013 9:02 AM To: seqan-dev@lists.fu-berlin.de Subject: [Seqan-dev] cmake - java version ? Hi, when executing "cmake ." I get the following warning: -- Warning, could not run java --version when trying to run java, I see it is installed (not a given... ) but there is no option "--version" just "-version" Here is what is installed: java version "1.7.0_25" OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) I guess it is not that important... Anyways any idea on how to remove this warning is appreciated... Thanks, Bernd _______________________________________________ seqan-dev mailing list seqan-dev@lists.fu-berlin.de https://lists.fu-berlin.de/listinfo/seqan-dev