This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 4b5f519268 Update Graal install and options
4b5f519268 is described below

commit 4b5f519268a04924de7584313bb0e54c40291413
Author: remm <r...@apache.org>
AuthorDate: Wed Dec 20 11:17:41 2023 +0100

    Update Graal install and options
    
    Testing with 21. No fundamental breaking changes, only some warnings.
---
 webapps/docs/graal.xml | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/webapps/docs/graal.xml b/webapps/docs/graal.xml
index ebd31bf892..9c05759a84 100644
--- a/webapps/docs/graal.xml
+++ b/webapps/docs/graal.xml
@@ -58,17 +58,6 @@
     Download and install GraalVM or Mandrel.
   </p>
 
-  <p>
-   If using GraalVM, the first step is then to add the Native Image tool.
-   <source>export JAVA_HOME=/absolute...path...to/graalvm-ce-javaX-x.y.z
-cd $JAVA_HOME/bin
-./gu install native-image</source>
-   Mandrel already includes the Native Image tool ready to use, so this
-   step can be skipped. Only <code>JAVA_HOME</code> must be set to the folder
-   which contains the bin folder with the JVM binaries, such as:
-   <source>export 
JAVA_HOME=/absolute...path...to/mandrel-javaXX-platform-x.x.x.x/mandrelJDK</source>
-  </p>
-
   <p>
     Download the Tomcat Stuffed module from
     <code>https://github.com/apache/tomcat/tree/10.1.x/modules/stuffed</code>.
@@ -169,11 +158,11 @@ ant -Dwebapp.name=$WEBAPPNAME -f 
webapp-jspc.ant.xml</source>
   <p>
     If everything has been done properly, the native image can now be built
     using the native-image tool.
-    <source>$JAVA_HOME/bin/native-image --no-server\
-        --allow-incomplete-classpath --enable-https\
+    <source>$JAVA_HOME/bin/native-image 
--report-unsupported-elements-at-runtime\
+        --enable-http --enable-https --enable-url-protocols=http,https,jar,jrt\
         
--initialize-at-build-time=org.eclipse.jdt,org.apache.el.parser.SimpleNode,jakarta.servlet.jsp.JspFactory,org.apache.jasper.servlet.JasperInitializer,org.apache.jasper.runtime.JspFactoryImpl\
-        -H:+JNI -H:+ReportUnsupportedElementsAtRuntime\
-        -H:+ReportExceptionStackTraces 
-H:EnableURLProtocols=http,https,jar,jrt\
+        -H:+UnlockExperimentalVMOptions\
+        -H:+JNI -H:+ReportExceptionStackTraces\
         -H:ConfigurationFileDirectories=$TOMCAT_STUFFED/target/\
         -H:ReflectionConfigurationFiles=$TOMCAT_STUFFED/tomcat-reflection.json\
         -H:ResourceConfigurationFiles=$TOMCAT_STUFFED/tomcat-resource.json\


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to