Comments (4)
Does it matter if it includes reflection information for classes that are not actually compiled into the application?
from native-build-tools.
Does it matter if it includes reflection information for classes that are not actually compiled into the application?
Yeah, native image generation fails because in the classpath those classes are not present. So you have to add the
-H:+AllowIncompleteClasspath
from native-build-tools.
You can use
gradle -Pagent run
if you want to generate agent output for main
source set.
Filtering of classes which are detected during an agent run is done using agent-filter files. Advanced configuration of native-image-agent isn't (at the moment) exposed to the end-user through our plugins (you could work around that by changing JVM parameters when invoking relevant tasks of said build tools).
agent-filter.json
which is present in the Gradle plugin is only used for filtering out internal Gradle classes (which are detected if run
task is invoked in the same JVM as the Gradle process itself).
Also note that if you set agent=true
in your configuration, --allow-incomplete-classpath
will automatically be added to the native-image
invocation.
from native-build-tools.
I opened a new issue about fixing this error message: #65
from native-build-tools.
Related Issues (20)
- (Gradle) Running tests with agent fails with "Missing property userCodeFilterPath in agent conditional configuration" HOT 1
- Make java-agent binding configurable
- build native image error HOT 1
- Allow all classes from a JAR, Module, or Package to be Included for Reflection HOT 3
- The URL of `quick build mode` has become a dead link HOT 1
- Check If Part of Code Became Sufficient After Refactoring
- Running native-tests should include provided scope dependencies
- With autodetection enabled, `generateTestResourceConfig` should look at processed test resources only
- "multi-project-with-tests" can not be compiled
- Cast issue when bumping from 0.9.28 to 0.10.0 HOT 4
- The junit-native does not support org.junit.rules.ExpectedException. HOT 2
- `metadata-copy` should follow recommendation HOT 2
- Native Image Agent Uses `JAVA_HOME` Instead of `GRAALVM_HOME`
- Gradle plugin can't find gu.cmd in GraalVM JDK 21 HOT 1
- Annotation processor support for generating reflect-config.json
- Sending SIGINT to an agent run does not collect the JSON files correctly
- Error: Main entry point class 'com.example.Application' neither found on classpath (spring boot maven multiple submodule)
- Unable to configure `configurationFileDirectories` for task `nativeCompile` HOT 1
- ./gradlew -Pagent run fails with Error: could not open `C:\Program Files\Java\graalvm-jdk-21.0.2+13.1\lib\svm\bin\.native-image-configure.exports' HOT 2
- Add some resiliency to the collection of reachability metadata HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from native-build-tools.