-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update native image generation section in GraalPy Micronaut/Spring Boot guides #2
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,6 +439,10 @@ This will start the application on port 8080. | |
|
||
## 7. GraalVM Native Executable | ||
|
||
*Note: Generating GraalVM native executable of Java applications that make use of Graal languages and virtual threads | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: Generating GraalVM native executables of Java applications that make use of Graal languages and virtual threads at the same time is supported only on GraalVM for JDK 23 and later. Notably, virtual threads support is unconditionally reachable in Micronaut framework and therefore this applies also to our example. |
||
at the same time is supported only on GraalVM JDK 23+. Notably, virtual threads support is unconditionally reachable | ||
in Micronaut framework and therefore this applies also to our example.* | ||
|
||
### 7.1. Native Executable metadata | ||
|
||
The [GraalVM](https://www.graalvm.org/) Native Image compilation requires metadata to properly run code that uses [dynamic proxies](https://www.graalvm.org/latest/reference-manual/native-image/metadata/#dynamic-proxy). | ||
|
@@ -470,7 +474,7 @@ To generate a native executable using Maven, run: | |
The native executable is created in the `target` directory and can be run with: | ||
|
||
```bash | ||
./target/demo | ||
./target/graalpy-micronaut | ||
``` | ||
|
||
## 8. Next steps | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While GraalPy provides a python-embedding package and GraalPy Maven plugin to simplify the required setup to ship Python packages as Java resources or in separate folders, sometimes developers may want to install the Python packages manually
using the GraalPy standalone distribution, and then use these manually installed packages in Java.