I am trying to build a project with cmake. This project is using java among other things. The problem is that at the code
find_package(Java REQUIRED)
If you are using the linux os then you have to set the java home like export
JAVA_HOME=/home/aqeel/development/jdk/jdk1.6.0_35 export PATH=$JAVA_HOME/bin:$PATH