<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Applied the patch.&nbsp; I still get the same error.<br>
    Rolf Eike Beer wrote:<br>
    <blockquote type="cite">
      <pre>Eli Gottlieb wrote:
&gt;<i> When I run CMake on my project (java bindings for llvm) after upgrading
</i>&gt;<i> 
</i>&gt;<i> to Ubuntu 12.04, it returns the following error:
</i>&gt;<i> &gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">eli at eli-netbook</a>:~/Programs/decac/src/org/jllvm/bindings$ cmake .
</i>&gt;<i> &gt; 
</i>&gt;<i> &gt; CMake Error at /usr/share/cmake-2.8/Modules/FindJava.cmake:99 (MESSAGE):
</i>&gt;<i> &gt;   Error executing java -version
</i>&gt;<i> &gt; 
</i>&gt;<i> &gt; Call Stack (most recent call first):
</i>&gt;<i> &gt;   CMakeLists.txt:21 (FIND_PACKAGE)
</i>&gt;<i> &gt; 
</i>&gt;<i> &gt; -- Configuring incomplete, errors occurred!
</i>&gt;<i> 
</i>&gt;<i> When I run `java -version` myself it returns:
</i>&gt;<i> &gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">eli at eli-netbook</a>:~/Programs/decac/src/org/jllvm/bindings$ java -version
</i>&gt;<i> &gt; java version "1.6.0_24"
</i>&gt;<i> &gt; OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
</i>&gt;<i> &gt; OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
</i>&gt;<i> 
</i>&gt;<i> Any idea what's going on here?
</i>
I think this is related to <a href="http://cmake.org/Bug/view.php?id=12878">http://cmake.org/Bug/view.php?id=12878</a>

Can you please use the patch from there and check if the error persists?

Eike
</pre>
    </blockquote>
  </body>
</html>