You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project uses the Native Build Tools Maven plugin to drive `native-image`.
91
91
The `native-default` profile produces an executable without additional
92
92
reflection configuration.
93
93
94
-
1) Build:
94
+
1. Build:
95
95
96
96
```bash
97
97
./mvnw package -Pnative-default
98
98
```
99
99
100
-
2) Run:
100
+
2. Run:
101
101
102
102
```bash
103
103
./target/example-default \
@@ -116,7 +116,7 @@ Exception in thread "main" java.lang.ClassNotFoundException: org.graalvm.example
116
116
This happens because static analysis did not discover that `StringReverser` (and
117
117
`StringCapitalizer`) are used via reflection, so they were not included.
118
118
119
-
## Identify dynamic access with the Build Report
119
+
## Identify Dynamic Access With the Build Report
120
120
121
121
GraalVM 25 adds an experimental reporting option to help you find dynamic access
122
122
before it breaks at runtime. With `-H:+ReportDynamicAccess`, in conjunction with
@@ -133,19 +133,16 @@ The `native-default` profile already enables this feature:
133
133
</buildArgs>
134
134
```
135
135
136
-
After building, open the report:
136
+
After building, open the report, `target/example-default-build-report.html`, and navigate to the “Dynamic Access” tab to review reflection usage in `ReflectionExample#main`.
137
137
138
-
-`target/example-default-build-report.html`
139
-
- See the “Dynamic Access” tab to review reflection usage in
140
-
`ReflectionExample#main`.
141
138
142
139
The report highlights code that needs to be reviewed to ensure successful
143
140
runtime execution of the application. In this application, the classes loaded
144
141
via `Class.forName(...)` need to be included in the executable.
0 commit comments