https://github.com/lreimer/payara-graal-native
Experiment on running Payara using GraalVM as native image
https://github.com/lreimer/payara-graal-native
graal graal-native javaee payara payara-micro
Last synced: over 1 year ago
JSON representation
Experiment on running Payara using GraalVM as native image
- Host: GitHub
- URL: https://github.com/lreimer/payara-graal-native
- Owner: lreimer
- License: mit
- Created: 2020-01-15T19:38:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T21:20:45.000Z (over 6 years ago)
- Last Synced: 2025-03-05T15:02:17.972Z (over 1 year ago)
- Topics: graal, graal-native, javaee, payara, payara-micro
- Language: Java
- Size: 58.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Payara Graal Native Image
Experiment on running Payara using GraalVM as native image. The idea was to build
an UberJar using the Gradle Plugin, then start Payara using the Graal tracing agent
and then call the `native-image` command with the generated JSON files.
```bash
$ ./gradlew assemble
$ ./gradlew microBundle microStart
$ ./gradlew graalNativeImage
```
Well, turns out it is not that easy! :disappointed:
The things seems to be that all dependencies are embedded JAR files in the UberJar.
When Graal tries to access these files during compilation these are obviously not
on the classpath. Graal Native Images have the limitation that dynamic class loading is
not supported.
https://github.com/oracle/graal/blob/master/substratevm/LIMITATIONS.md#dynamic-class-loading--unloading
## Maintainer
M.-Leander Reimer (@lreimer),
## License
This software is provided under the MIT open source license, read the `LICENSE`
file for details.