Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/access-environment-variables/**'
- '.github/workflows/native-image/access-environment-variables.yml'
- '.github/workflows/native-image-access-environment-variables.yml'
pull_request:
paths:
- 'native-image/access-environment-variables/**'
- '.github/workflows/native-image/access-environment-variables.yml'
- '.github/workflows/native-image-access-environment-variables.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/add-jfr/**'
- '.github/workflows/native-image/add-jfr.yml'
- '.github/workflows/native-image-add-jfr.yml'
pull_request:
paths:
- 'native-image/add-jfr/**'
- '.github/workflows/native-image/add-jfr.yml'
- '.github/workflows/native-image-add-jfr.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/add-jmx/**'
- '.github/workflows/native-image/add-jmx.yml'
- '.github/workflows/native-image-add-jmx.yml'
pull_request:
paths:
- 'native-image/add-jmx/**'
- '.github/workflows/native-image/add-jmx.yml'
- '.github/workflows/native-image-add-jmx.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/add-logging/**'
- '.github/workflows/native-image/add-logging.yml'
- '.github/workflows/native-image-add-logging.yml'
pull_request:
paths:
- 'native-image/add-logging/**'
- '.github/workflows/native-image/add-logging.yml'
- '.github/workflows/native-image-add-logging.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-from-jar/**'
- '.github/workflows/native-image/build-from-jar.yml'
- '.github/workflows/native-image-build-from-jar.yml'
pull_request:
paths:
- 'native-image/build-from-jar/**'
- '.github/workflows/native-image/build-from-jar.yml'
- '.github/workflows/native-image-build-from-jar.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-java-modules/**'
- '.github/workflows/native-image/build-java-modules.yml'
- '.github/workflows/native-image-build-java-modules.yml'
pull_request:
paths:
- 'native-image/build-java-modules/**'
- '.github/workflows/native-image-build/java-modules.yml'
- '.github/workflows/native-image-build-java-modules.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-shared-library/**'
- '.github/workflows/native-image/build-shared-library.yml'
- '.github/workflows/native-image-build-shared-library.yml'
pull_request:
paths:
- 'native-image/build-shared-library/**'
- '.github/workflows/native-image/build-shared-library.yml'
- '.github/workflows/native-image-build-shared-library.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-static-images/**'
- '.github/workflows/native-image/build-static-images.yml'
- '.github/workflows/native-image-build-static-images.yml'
pull_request:
paths:
- 'native-image/build-static-images/**'
- '.github/workflows/native-image/build-static-images.yml'
- '.github/workflows/native-image-build-static-images.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-with-js-embedded/**'
- '.github/workflows/native-image/build-with-js-embedded.yml'
- '.github/workflows/native-image-build-with-js-embedded.yml'
pull_request:
paths:
- 'native-image/build-with-js-embedded/**'
- '.github/workflows/native-image/build-with-js-embedded.yml'
- '.github/workflows/native-image-build-with-js-embedded.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/configure-with-tracing-agent/**'
- '.github/workflows/native-image/configure-with-tracing-agent.yml'
- '.github/workflows/native-image-configure-with-tracing-agent.yml'
pull_request:
paths:
- 'native-image/configure-with-tracing-agent/**'
- '.github/workflows/native-image/configure-with-tracing-agent.yml'
- '.github/workflows/native-image-configure-with-tracing-agent.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cd graalvm-demos
<td align="left" width="70%">Demonstrates how to generate a native executable using the Native Build Tools Maven plugin <br><strong>Technologies: </strong>Native Image, Native Build Tools Maven plugin<br><strong>Reference: </strong><a href="https://docs.oracle.com/en/graalvm/jdk/21/docs/getting-started/oci/code-editor/">Oracle GraalVM in OCI Code Editor</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-hello-module/">native-hello-module</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-hello-module.yml"><img alt="native-hello-module" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-hello-module.yml/badge.svg" /></a></td>
<td align="left" width="30%"><a href="/native-image/build-java-modules/">native-image/build-java-modules</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-build-java-modules.yml"><img alt="build-java-modules" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-build-java-modules.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to build a modular Java application into a native executable<br><strong>Technologies: </strong>Native Image, Maven<br><strong>Reference: </strong><a href="https://www.graalvm.org/dev/reference-manual/native-image/guides/build-java-modules-into-native-executable/">Build Java Modules into a Native Executable</a></td>
</tr>
<tr>
Expand Down Expand Up @@ -72,31 +72,31 @@ cd graalvm-demos
<td align="left" width="70%">Demonstrates how to debug a Java application, built into a native executable in VS Code<br><strong>Technologies: </strong>Native Image, Maven, GraalVM Tools for Java<br><strong>Reference: </strong><a href="https://medium.com/graalvm/native-image-debugging-in-vs-code-2d5dda1989c1">Native Image Debugging in VS Code</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-image-logging-examples/">native-image-logging-examples</a><br><a href="https://github.com/graalvm/graalvm-demos/blob/ni-logging-demo/.github/workflows/native-image-logging-examples.yml"><img alt="native-image-logging-examples" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-logging-examples.yml/badge.svg" /></a></td>
<td align="left" width="30%"><a href="/native-image/add-logging/">native-image/add-logging</a><br><a href="https://github.com/graalvm/graalvm-demos/blob/ni-logging-demo/.github/workflows/native-image-add-logging.yml"><img alt="add-logging" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-add-logging.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to initialize Loggers with Native Image at the executable build or run time<br><strong>Technologies: </strong> Native Image<br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/add-logging-to-native-executable/">Add Logging to a Native Executable</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-jfr-demo/">native-jfr-demo</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/ni-native-executable-jfr-demo/.github/workflows/native-jfr-demo.yml"><img alt="native-jfr-demo" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-jfr-demo.yml/badge.svg"/></a></td>
<td align="left" width="30%"><a href="/native-image/add-jfr/">native-image/add-jfr</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/ni-native-executable-jfr-demo/.github/workflows/native-image-add-jfr.yml"><img alt="add-jfr" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-add-jfr.yml/badge.svg"/></a></td>
<td align="left" width="70%">Demonstrates how to create a custom JDK Flight Recorder (JFR) event and use that in a native executable<br><strong>Technologies: </strong> Native Image, JFR, VisualVM <br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/build-and-run-native-executable-with-jfr/">Build and Run Native Executables with JFR</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-shared-library/">native-shared-library</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-shared-library.yml"><img alt="native-shared-library" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-shared-library.yml/badge.svg"/></a></td>
<td align="left" width="30%"><a href="/native-image/build-shared-library/">native-image/build-shared-library</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-build-shared-library.yml"><img alt="build-shared-library" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-build-shared-library.yml/badge.svg"/></a></td>
<td align="left" width="70%">Demonstrates how to create a Java class library, use Native Image to create a native shared library, and then create a small C application that uses that shared library<br><strong>Technologies: </strong> Native Image, LLVM toolchain <br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/build-native-shared-library/">Build a Native Shared Library</a></td>
</tr>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-image-reflection-example/">native-image-reflection-example</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-reflection-example.yml"><img alt="native-image-reflection-example" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-reflection-example.yml/badge.svg"/></a></td>
<td align="left" width="30%"><a href="/native-image/configure-with-tracing-agent/">native-image/configure-with-tracing-agent</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-configure-with-tracing-agent.yml"><img alt="configure-with-tracing-agent" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-configure-with-tracing-agent.yml/badge.svg"/></a></td>
<td align="left" width="70%">Demonstrates how to provide metadata for Native Image in the form of JSON configuration files using a tracing agent<br><strong>Technologies: </strong> Native Image</td>
</tr>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-static-images/">native-static-images</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-static-images.yml"><img alt="native-static-images" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-static-images.yml/badge.svg"/></a></td>
<td align="left" width="30%"><a href="/native-image/build-static-images/">native-image/build-static-images</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-build-static-images.yml"><img alt="build-static-images" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-build-static-images.yml/badge.svg"/></a></td>
<td align="left" width="70%">Demonstrates how to build a fully static and a mostly-static native executable.<br><strong>Technologies: </strong> Native Image <br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/">Build a Statically Linked or Mostly-Statically Linked Native Executable</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-heapdump-examples/">native-heapdump-examples</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-heapdump-examples.yml"><img alt="native-heapdump-examples" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-heapdump-examples.yml/badge.svg"/></a></td>
<td align="left" width="70%">Demonstrates different ways to generate a heap dump from a running native executable.<br><strong>Technologies: </strong> Native Image, VisualVM <br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/create-heap-dump/">Create a Heap Dump from a Native Executable</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-image-jmx-demo/">native-image-jmx-demo</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-jmx-demo.yml"><img alt="nnative-image-jmx-demo" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-jmx-demo.yml/badge.svg"/></a></td>
<td align="left" width="30%"><a href="/native-image/add-jmx/">native-image/add-jmx</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-add-jmx.yml"><img alt="add-jmx" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-add-jmx.yml/badge.svg"/></a></td>
<td align="left" width="70%">This demo covers the steps required to build, run, and interact with a native executable using JMX.<br><strong>Technologies: </strong> Native Image, JMX, VisualVM <br><strong>Reference: </strong><a href="https://www.graalvm.org/dev/reference-manual/native-image/guides/build-and-run-native-executable-with-remote-jmx/">Build and Run Native Executables with Remote JMX</a></td>
</tr>
</tbody>
Expand Down
3 changes: 0 additions & 3 deletions native-image/configure-with-tracing-agent/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ set -ex
javac ReflectionExample.java
java ReflectionExample StringReverser reverse "hello"
java ReflectionExample StringCapitalizer capitalize "hello"
native-image -Ob ReflectionExample
./reflectionexample StringReverser reverse "hello"
./reflectionexample StringCapitalizer capitalize "hello"
mkdir -p META-INF/native-image
java -agentlib:native-image-agent=config-output-dir=META-INF/native-image ReflectionExample StringReverser reverse "hello"
java -agentlib:native-image-agent=config-merge-dir=META-INF/native-image ReflectionExample StringCapitalizer capitalize "hello"
Expand Down