diff --git a/docs/reference-manual/java-on-truffle/README.md b/docs/reference-manual/java-on-truffle/README.md index 38542f79b1eab..4768f5091ca23 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: @@ -125,7 +125,7 @@ cd spring-petclinic 3. Then run it from the command line by selecting the `-truffle` runtime: ```java -java -truffle -jar target/spring-petclinic--SNAPSHOT.jar +java -truffle --jar target/spring-petclinic--SNAPSHOT.jar ``` 4. When the application starts, access it on [localhost:8000](http://localhost:8080/). diff --git a/docs/reference-manual/native-image/README.md b/docs/reference-manual/native-image/README.md index d24d8556f2ddb..b12b500004c7e 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: