[CMake] CMake can't find the JDK?
Eli Gottlieb
eligottlieb at gmail.com
Fri Jun 29 22:47:40 EDT 2012
When I run CMake on my project (java bindings for llvm) after upgrading
to Ubuntu 12.04, it returns the following error:
> eli at eli-netbook:~/Programs/decac/src/org/jllvm/bindings$ cmake .
> CMake Error at /usr/share/cmake-2.8/Modules/FindJava.cmake:99 (MESSAGE):
> Error executing java -version
> Call Stack (most recent call first):
> CMakeLists.txt:21 (FIND_PACKAGE)
>
>
> -- Configuring incomplete, errors occurred!
When I run `java -version` myself it returns:
> eli at eli-netbook:~/Programs/decac/src/org/jllvm/bindings$ java -version
> java version "1.6.0_24"
> OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Any idea what's going on here?
Thanks,
Eli Gottlieb
More information about the CMake
mailing list