[CMake] CMake can't find the JDK?

Eli Gottlieb eligottlieb at gmail.com
Mon Jul 2 15:26:41 EDT 2012


Applied the patch.  I still get the same error.
Rolf Eike Beer wrote:
> Eli Gottlieb wrote:
> >/  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  <http://www.cmake.org/mailman/listinfo/cmake>:~/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  <http://www.cmake.org/mailman/listinfo/cmake>:~/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?
> /
> I think this is related tohttp://cmake.org/Bug/view.php?id=12878
>
> Can you please use the patch from there and check if the error persists?
>
> Eike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120702/62525b76/attachment.htm>


More information about the CMake mailing list