Skip to content

Upgrade NI Quickstart workshop to GraalVM for JDK 24; Refactor the demo part instead of Log4J use JSON Serialization.#25

Merged
olyagpl merged 3 commits into
mainfrom
upgrade-ni-quick-start-to-jdk24
May 26, 2025
Merged

Upgrade NI Quickstart workshop to GraalVM for JDK 24; Refactor the demo part instead of Log4J use JSON Serialization.#25
olyagpl merged 3 commits into
mainfrom
upgrade-ni-quick-start-to-jdk24

Conversation

@olyagpl

@olyagpl olyagpl commented May 21, 2025

Copy link
Copy Markdown
Member

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 21, 2025
@olyagpl olyagpl requested a review from krisfoster May 21, 2025 13:00
@olyagpl olyagpl changed the title Upgrade NI Quickstart workshop to GraalVM for JDK 24; Refactor the demo part instead of Log4 use JSON Serialization. Upgrade NI Quickstart workshop to GraalVM for JDK 24; Refactor the demo part instead of Log4J use JSON Serialization. May 21, 2025
cd native-image/native-image-quick-start/lab/
./mvnw --no-transfer-progress clean package exec:exec
./mvnw --no-transfer-progress clean package exec:exec -Pjava_agent
java -agentlib:native-image-agent=config-output-dir=./src/main/resources/META-INF/native-image -cp ./target/graalvmnidemos-1.0-SNAPSHOT-jar-with-dependencies.jar serialization.App

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run the profile -Pjava_agent, the agent produces an empty reachability-metadata.json file so I recommend to run with java. I updated accordingly in README.md

alt="GraalVM logo"
width="200px">

# Get Started with GraalVM Native Image

@olyagpl olyagpl May 21, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krisfoster, I upgraded and refactored this workshop to be compatible with GraalVM for JDK 24, latest Native Build Tools and the demo part has to be replaced. This workshop now matches the alternative one in Luna: https://luna.oracle.com/lab/47dafec8-4095-4fba-8313-dad43a64dee4

@olyagpl olyagpl force-pushed the upgrade-ni-quick-start-to-jdk24 branch from 0bbe593 to a536496 Compare May 21, 2025 15:02
@olyagpl olyagpl self-assigned this May 22, 2025
@olyagpl olyagpl force-pushed the upgrade-ni-quick-start-to-jdk24 branch from a536496 to c0329a0 Compare May 22, 2025 20:36
@olyagpl olyagpl requested a review from sachin-pikle May 23, 2025 09:36
@olyagpl olyagpl force-pushed the upgrade-ni-quick-start-to-jdk24 branch from c0329a0 to bd26491 Compare May 23, 2025 17:11
@sachin-pikle

Copy link
Copy Markdown
Collaborator

Tested. Looks good to me.

sachin-pikle
sachin-pikle previously approved these changes May 25, 2025
Comment thread native-image/native-image-quick-start/README.md

@sachin-pikle sachin-pikle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@olyagpl olyagpl merged commit 1da5391 into main May 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants