Graalvm to run wasm from spring boot

Graalvm is AOT compilation advanced JDK, I am following the project since 2019, Project’s first target was AOT now lately I start seeing more about multi language support. It supports Python, JS, Ruby, Wasm more details here And WASM is getting popular day by day, WASM is a new binary file for web. There are many cool examples of WASM Doom game in the browser with graalvm Postgres database in the browser I was wondering how to run WASM code in simple spring boot application, ...

November 4, 2024 · 1 min · Özkan Pakdil

How to build spring boot native binary

In short I am explaining why we should use ./mvnw -Pnative native:compile and what error comes otherwise and why. I was preparing this answer. And I was having problem with the class not found errors while building because I was using this command ./mvnw native:compile ... Error: Please specify class (or <module>/<mainclass>) containing the main entry point method. (see --help) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.448 s [INFO] Finished at: 2024-09-01T21:24:32+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.10.2:compile (default-cli) on project env-variables: Execution of C:\sdkman\candidates\java\21.0.2-graal\bin\native-image.cmd @target\tmp\native-image-2373453772169200185.args returned non-zero result -> [Help 1] [ERROR] Then remembered the profile thing and finally get rid of this error, used below command ...

September 1, 2024 · 1 min · Özkan Pakdil