diff --git a/docs/manual/CoreTasks/java.html b/docs/manual/CoreTasks/java.html index 61d34e9a9..aceb1cffc 100644 --- a/docs/manual/CoreTasks/java.html +++ b/docs/manual/CoreTasks/java.html @@ -80,7 +80,7 @@ JVM.
Java's classpath attribute is a PATH like structure and can also be set via a nested
classpath element.
<java classname="test.Main" >
<arg value="-h"/>
<classpath>
- <pathelement location="\test.jar"/>
+ <pathelement location="dist/test.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
- <java jar="dist/test.jar"
+ fork="true"
+ failonerror="true"
+ maxmemory="128m"
+ >
+ <arg value="-h"/>
+ <classpath>
+ <pathelement location="dist/test.jar"/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+
+Run the jar using the manifest supplied entry point, forking (as required),
+and with a maximum memory of 128MB. Any non zero return code breaks the build.
+
<java classname="test.Main"/>
<java classname="test.Main"
fork="yes" >
@@ -130,7 +146,9 @@ href="../using.html#path">PATH like structure and can also be set via a nest
<jvmarg value="-Xrunhprof:cpu=samples,file=log.txt,depth=3"/>
</java>
-
+Note: you can not specify the (highly deprecated) MSJVM, "jview.exe" as the
+JVM, as it takes different parameters for other JVMs,
+That JVM can be started from <exec> if required.
Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.