You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2017/12/06 01:57:14 UTC
mesos-site git commit: Updated the website built from mesos SHA:
d72d609.
Repository: mesos-site
Updated Branches:
refs/heads/asf-site c3f65cdbe -> 476be08f9
Updated the website built from mesos SHA: d72d609.
Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/476be08f
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/476be08f
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/476be08f
Branch: refs/heads/asf-site
Commit: 476be08f935d841a6b6cfbb79e4c1ff3f3bca691
Parents: c3f65cd
Author: jenkins <bu...@apache.org>
Authored: Wed Dec 6 01:57:12 2017 +0000
Committer: jenkins <bu...@apache.org>
Committed: Wed Dec 6 01:57:12 2017 +0000
----------------------------------------------------------------------
content/documentation/cmake-examples/index.html | 21 ++++++++++++++++----
.../latest/cmake-examples/index.html | 21 ++++++++++++++++----
2 files changed, 34 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/476be08f/content/documentation/cmake-examples/index.html
----------------------------------------------------------------------
diff --git a/content/documentation/cmake-examples/index.html b/content/documentation/cmake-examples/index.html
index 92662d3..7e865b2 100644
--- a/content/documentation/cmake-examples/index.html
+++ b/content/documentation/cmake-examples/index.html
@@ -459,7 +459,7 @@ An installation of the Java SDK can be found form <a href="http://www.oracle.com
<p>As of this writing, Java 9 is not yet supported, but Java 8 has been tested.</p>
-<p>The Java build defaults to <code>OFF</code> because it is slow, to build the Java
+<p>The Java build defaults to <code>OFF</code> because it is slow. To build the Java
components on Windows, turn it <code>ON</code>:</p>
<pre><code class="powershell">mkdir build; cd build
@@ -472,10 +472,23 @@ cmake --build . --target mesos-java
<p>Note that the <code>mesos-java</code> library does not have to be manually built; as
<code>libmesos</code> will link it when Java is enabled.</p>
-<p>At runtime, if <code>JAVA_JVM_LIBRARY</code> is not set correctly, it can also be set as an
-environment variable, and should be of the form:</p>
+<p>Unfortunately, on Windows the <code>FindJNI</code> CMake module will populate <code>JAVA_JVM_LIBRARY</code> with
+the path to the static <code>jvm.lib</code>, but this variable must point to the shared
+library, <code>jvm.dll</code>, as it is loaded at runtime. Set it correctly like this:</p>
-<pre><code>C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll
+<pre><code>$env:JAVA_JVM_LIBRARY = "C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll"
+</code></pre>
+
+<p>The library may still fail to load at runtime with the following error:</p>
+
+<blockquote><p>“The specified module could not be found.”</p></blockquote>
+
+<p>If this is the case, and the path to <code>jvm.dll</code> is verified to be correct, then
+the error message actually indicates that the dependencies of <code>jvm.dll</code> could
+not be found. On Windows, the DLL search path includes the environment variable
+<code>PATH</code>, so add the <code>bin</code> folder which contains <code>server\jvm.dll</code> to <code>PATH</code>:</p>
+
+<pre><code>$env:PATH += ";C:\Program Files\Java\jdk1.8.0_144\jre\bin"
</code></pre>
<h2>Building with OpenSSL</h2>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/476be08f/content/documentation/latest/cmake-examples/index.html
----------------------------------------------------------------------
diff --git a/content/documentation/latest/cmake-examples/index.html b/content/documentation/latest/cmake-examples/index.html
index c8e3574..9b62859 100644
--- a/content/documentation/latest/cmake-examples/index.html
+++ b/content/documentation/latest/cmake-examples/index.html
@@ -459,7 +459,7 @@ An installation of the Java SDK can be found form <a href="http://www.oracle.com
<p>As of this writing, Java 9 is not yet supported, but Java 8 has been tested.</p>
-<p>The Java build defaults to <code>OFF</code> because it is slow, to build the Java
+<p>The Java build defaults to <code>OFF</code> because it is slow. To build the Java
components on Windows, turn it <code>ON</code>:</p>
<pre><code class="powershell">mkdir build; cd build
@@ -472,10 +472,23 @@ cmake --build . --target mesos-java
<p>Note that the <code>mesos-java</code> library does not have to be manually built; as
<code>libmesos</code> will link it when Java is enabled.</p>
-<p>At runtime, if <code>JAVA_JVM_LIBRARY</code> is not set correctly, it can also be set as an
-environment variable, and should be of the form:</p>
+<p>Unfortunately, on Windows the <code>FindJNI</code> CMake module will populate <code>JAVA_JVM_LIBRARY</code> with
+the path to the static <code>jvm.lib</code>, but this variable must point to the shared
+library, <code>jvm.dll</code>, as it is loaded at runtime. Set it correctly like this:</p>
-<pre><code>C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll
+<pre><code>$env:JAVA_JVM_LIBRARY = "C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll"
+</code></pre>
+
+<p>The library may still fail to load at runtime with the following error:</p>
+
+<blockquote><p>“The specified module could not be found.”</p></blockquote>
+
+<p>If this is the case, and the path to <code>jvm.dll</code> is verified to be correct, then
+the error message actually indicates that the dependencies of <code>jvm.dll</code> could
+not be found. On Windows, the DLL search path includes the environment variable
+<code>PATH</code>, so add the <code>bin</code> folder which contains <code>server\jvm.dll</code> to <code>PATH</code>:</p>
+
+<pre><code>$env:PATH += ";C:\Program Files\Java\jdk1.8.0_144\jre\bin"
</code></pre>
<h2>Building with OpenSSL</h2>