Comments (7)
Shouldn't it be META-INF/native-image/...
?
from graal.
I have confirmed that running unzip
-> zip
fixes this issue, so there's definitely some part of the ZIP format that native-image
doesn't support.
I also noticed that resource-config.json
matching fails in the original JAR. Probably the same underlying cause.
from graal.
You can manually include resources using the -H:IncludeResources flag when running native-image. This can be a workaround if automatic detection fails:
native-image -jar my_strange.jar -H:IncludeResources="META-INF/native-image/.*"
As a diagnostic step, try creating a simpler version of the JAR without the self-extracting feature and in standard zip format, if possible. This can help isolate the issue to the zip64 or self-extracting features.
Finally, can you please use the latest version of Oracle GraalVM
instead of GraalVM CE
and share your results?
from graal.
I have confirmed that the issue is with self-extracting JARs.
from graal.
Thanks for the report, @nreid260. We understand you can't share your application, but is there any way you could put together a self-extracting JAR, or instructions for creating one, for a simple example that we can use to reproduce this?
from graal.
Internal ticket created: GR-52515
from graal.
I've also observed that this issue arises when I utilize the useFatJar = true
option. It's worth noting that my monolithic application has approximately 70 dependencies.
graalvmNative {
binaries {
main {
imageName = "my-app"
mainClass = "com.company.MainApplication"
useFatJar = true
}
}
}
from graal.
Related Issues (20)
- graalvm-community-jdk-22.0.2 downloads ...jdk-22.0.0 HOT 4
- [GR-55881] Issue with JDK Mission Control and Native Image Application Using JMX HOT 11
- NativeImage crashed with random Stacktrace
- [GR-56345] Provide an `espresso-runtime-<RuntimeResourceId>` with UPL or GPL as the LICENSE? HOT 3
- Static native executables using G1 GC crashes when attempting to run it (Segmentation fault) HOT 2
- ScriptEngine does not support `require()`
- [GR-57127] Native Image generated by `native-image` tool is not working with ZoomBA project HOT 4
- [GR-56749] Missing Documentation Video/Tutorial HOT 2
- Failure to build libgraal on OpenJDK change
- [GR-56882] PLDI 2017, June 18-23, Barcelona, Spain presentation and video unavailable. HOT 4
- Cannot convert "1682293037722628098'(1anguage: Java, type: com.oracle.truffle.api.strings.Trufflestring) to Java type "java.lang .0bject[]':Unsupported target type HOT 3
- Got ClassNotFoundException while building native image with grpc-netty-shaded HOT 2
- native-image-configure tool is throwing a ClassCastException on latest Oracle EA Build HOT 5
- Getting Error: Missing CAP cache value for: NativeCodeInfo:RISCV64LibCHelperDirectives:StructInfo:CPUFeatures HOT 3
- Exception in thread "main" java.lang.IllegalArgumentException: invalid type parameter: void HOT 1
- Using GraalVM with JBOSS/Wildfly throws warning: does not support runtime compilation HOT 4
- GraalVM Fatal error reported via JNI: Could not allocate library name HOT 1
- [GR-57252] Improve error message when trying to build static image on unsupported platforms
- NPE in com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess.createRuntime(): "jdk.internal.module.Modules.JLA" is null HOT 1
- [Feature Request] Turn off truffle compilation dynamically
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 graal.