jira-importer commented on issue #294:
URL: 
https://github.com/apache/maven-jlink-plugin/issues/294#issuecomment-2629360757

   **[Sebastian 
Stenzel](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=sebastianstenzel)**
 commented
   
   Not sure if this is related, but the very example that is given for in the 
docs does not work:
    
   
   ```xml
   <addOptions>
       <addOption>-Xmx256m</addOption>
       <addOption>--enable-preview</addOption>
       <addOption>-Dvar=value</addOption>
   </addOptions>
   ```
   
   results in:
   
   ```
   bin/java -version
   Invalid maximum heap size: -Xmx256m --enable-preview -Dvar=value
   Error: Could not create the Java Virtual Machine.
   Error: A fatal exception has occurred. Program will exit.
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to