Skip to content

Commit

Permalink
Follow Olya G. comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LesiaChaban committed Dec 5, 2023
1 parent eca3aff commit aee6cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions java-kotlin-aot/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Java Kotlin Interoperability and AOT Compilation Demo
# Java and Kotlin Interoperability Demo

This repository contains the code for a demo application for [GraalVM](graalvm.org).

Expand Down Expand Up @@ -35,7 +35,7 @@ To build the application use this command:
Look at this important line of the `build.sh` which creates a native executable for the Java application.

```bash
$JAVA_HOME/bin/native-image --no-fallback -cp ./target/mixed-code-hello-world-1.0-SNAPSHOT-jar-with-dependencies.jar -H:Name=helloworld -H:Class=hello.JavaHello -H:+ReportUnsupportedElementsAtRuntime
$JAVA_HOME/bin/native-image --no-fallback -cp ./target/mixed-code-hello-world-1.0-SNAPSHOT-jar-with-dependencies.jar -H:Name=helloworld -H:Class=hello.JavaHello --report-unsupported-elements-at-runtime
```
The `native-image` builder compiles the application ahead-of-time (AOT) for faster startup and lower general overhead at runtime.

Expand Down
2 changes: 1 addition & 1 deletion java-kotlin-aot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -ex

mvn clean install

$JAVA_HOME/bin/native-image --no-fallback -cp ./target/mixed-code-hello-world-1.0-SNAPSHOT-jar-with-dependencies.jar -H:Name=helloworld -H:Class=hello.JavaHello -H:+ReportUnsupportedElementsAtRuntime
$JAVA_HOME/bin/native-image --no-fallback -cp ./target/mixed-code-hello-world-1.0-SNAPSHOT-jar-with-dependencies.jar -H:Name=helloworld -H:Class=hello.JavaHello --report-unsupported-elements-at-runtime

0 comments on commit aee6cbe

Please sign in to comment.