https://github.com/oktadev/okta-graalvm-example
An example project showing the packaging of a Java application as a native-image using GraalVM
https://github.com/oktadev/okta-graalvm-example
graalvm java native-image
Last synced: 26 days ago
JSON representation
An example project showing the packaging of a Java application as a native-image using GraalVM
- Host: GitHub
- URL: https://github.com/oktadev/okta-graalvm-example
- Owner: oktadev
- Created: 2019-11-27T16:07:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T23:39:07.000Z (about 6 years ago)
- Last Synced: 2026-04-21T06:57:49.788Z (2 months ago)
- Topics: graalvm, java, native-image
- Language: Java
- Homepage: http://developer.okta.com/blog/2019/11/27/graalvm-java-binaries
- Size: 6.84 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build native binaries with GraalVM
This example shows how to use GraalVM to turn a Java application into a native binary using GraalVM's `native-image` tool.
Please read [Watch GraalVM Turn Your Java Into Binaries][blog-url] for a tutorial that shows you how to build this application.
**Prerequisites:**
* [GraalVM](https://www.graalvm.org/downloads/)
* [Maven](https://maven.apache.org/download.cgi)
**Table of Contents**
* [Getting Started](#getting-started)
* [Help](#help)
* [Links](#links)
* [License](#license)
## Getting Started
This repository contains two examples (`jvm` and `javascript`), you can build each one using `mvn package`.
```bash
git clone https://github.com/oktadeveloper/okta-graalvm-example.git
cd jdk
mvn package
```
### Run the application
To start the application you can run:
```bash
./target/roll 2d20
```
## Links
This example uses the following libraries provided by Okta:
* [GraalVM](https://www.graalvm.org/)
## Help
Please post any questions as comments on [this blog post][blog-url], or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email developers@okta.com if would like to create a support ticket.
## License
Apache 2.0, see [LICENSE](LICENSE).
[blog-url]: http://developer.okta.com/blog/2019/11/27/graalvm-java-binaries