[CMake] CMake Java configuration error on Linux, working fine on Mac and Windows.

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Aug 13 07:49:00 EDT 2008


It simply means that java (javac ?) was not found on the linux system.

if you ccmake and/or make edit_cache you'll see that some JAVA
required inputs are missing.

HTH

On Wed, Aug 13, 2008 at 2:23 AM, Andy Somogyi <andy.somogyi at gmail.com> wrote:
> Hello
>
> I'm working on a c++ / JNI application which needs to run on
> Mac/Linux/Windows.
>
> It builds fine on Mac and Windows, however on Linux (Ubuntu 8.04, cmake
> version 2.4 patch 7) I get the following error:
>
> CMake Error: JAVA_DIR is not set.  It must be set to the directory
> containing JAVAConfig.cmake in order to use JAVA.
>
> The strange thing is that, it compiles fine on Mac using cmake version 2.4
> patch 8. I searched the entire file system on the Mac for a JAVAConfig.cmake
> and it is not there, but it compiles fine. On Linux I'm using Sun JDK 6.
>
> Any ideas would be greatly appreciated.
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Mathieu


More information about the CMake mailing list