From aee6cbe27cc4293b02e9230103bcf8e529a9b9fd Mon Sep 17 00:00:00 2001 From: Lesia Chaban Date: Tue, 5 Dec 2023 11:11:48 +0200 Subject: [PATCH] Follow Olya G. comments --- java-kotlin-aot/README.md | 4 ++-- java-kotlin-aot/build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-kotlin-aot/README.md b/java-kotlin-aot/README.md index df00978b4..13d6e72fb 100644 --- a/java-kotlin-aot/README.md +++ b/java-kotlin-aot/README.md @@ -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). @@ -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. diff --git a/java-kotlin-aot/build.sh b/java-kotlin-aot/build.sh index 5c7c5dc6c..9ffdad593 100755 --- a/java-kotlin-aot/build.sh +++ b/java-kotlin-aot/build.sh @@ -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 \ No newline at end of file +$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 \ No newline at end of file