diff --git a/docs/reference-manual/java-on-truffle/README.md b/docs/reference-manual/java-on-truffle/README.md index 38542f79b1ea..0b5772ba050e 100644 --- a/docs/reference-manual/java-on-truffle/README.md +++ b/docs/reference-manual/java-on-truffle/README.md @@ -57,7 +57,7 @@ java -truffle [options] class ``` To execute a JAR file: ```shell -java -truffle [options] --jar jarfile +java -truffle [options] -jar jarfile ``` Using Java 11 based GraalVM distribution, you can also run a Java application from the main class in a module, or run a single source-file program: diff --git a/docs/reference-manual/native-image/README.md b/docs/reference-manual/native-image/README.md index d24d8556f2dd..b12b500004c7 100644 --- a/docs/reference-manual/native-image/README.md +++ b/docs/reference-manual/native-image/README.md @@ -195,7 +195,7 @@ native-image [options] -jar jarfile [imagename] 4. Create a native executable: ``` - native-image --jar App.jar + native-image -jar App.jar ``` It will produce a native executable in the project root directory. 5. Run the native executable: