docs: replace non-existent HelloWorldApp references with java --version#1043
Merged
Conversation
…and advanced-usage
Copilot
AI
changed the title
[WIP] Update README examples to remove HelloWorldApp.java references
docs: replace non-existent HelloWorldApp references with java --version
Jun 22, 2026
brunoborges
approved these changes
Jun 22, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation examples to avoid referencing a non-existent HelloWorldApp.java / HelloWorldApp file by replacing those run commands with simple version-check commands.
Changes:
- Replaced
HelloWorldAppexecution examples withjava --versionacross README and advanced usage docs. - Updated the GraalVM example to use
native-image --versioninstead of building/running a non-existent app.
Show a summary per file
| File | Description |
|---|---|
| README.md | Replaces HelloWorldApp.java run steps with a Java version check command. |
| docs/advanced-usage.md | Replaces HelloWorldApp run steps with Java/native-image version check commands across multiple distribution examples. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 4
| distribution: '<distribution>' | ||
| java-version: ${{ matrix.java }} | ||
| - run: java HelloWorldApp.java | ||
| - run: java --version |
| distribution: 'dragonwell' | ||
| java-version: '8' | ||
| - run: java -cp java HelloWorldApp | ||
| - run: java --version |
| distribution: ${{ matrix.distribution }} | ||
| java-version: ${{ matrix.java }} | ||
| - run: java -cp java HelloWorldApp | ||
| - run: java --version |
| distribution: 'temurin' | ||
| java-version: ${{ matrix.java }} | ||
| - run: java -cp java HelloWorldApp | ||
| - run: java --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
README and advanced-usage examples referenced
HelloWorldApp.java/HelloWorldAppinrunsteps without ever creating that file, causing copy-paste failures.Changes:
README.md(4 occurrences): replacedjava HelloWorldApp.javawithjava --versiondocs/advanced-usage.md(19 occurrences): replacedjava -cp java HelloWorldAppwithjava --version; for the GraalVM example, also replacednative-image -cp java HelloWorldAppwithnative-image --versionCheck list: