GraalVM: Native Image Build fails
See original GitHub issueWhen I try to build the native image for my quarkus project using the command mvn package -Pnative I get an unexpected error that causes the build to fail:
Error: Cannot run program "C:\Program Files\Java\graal\bin\java.exe": CreateProcess error=206, Name or extension is too long
- java version “13.0.1” 2019-10-15 Java™ SE Runtime Environment (build 13.0.1+9) Java HotSpot™ 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)
- java version 11
- Latest
- Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00) Maven home: C:\maven\bin.. Java version: 13.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-13.0.1 Default locale: it_IT, platform encoding: Cp1252 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”
If you need the full log tell me, it’s really long and github won’t let me upload it
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Fix GraalVM Native Image Build Issues - Simply-How.com
One of the most common problems when building native images are out of memory errors: Error: Image build request failed with exit status...
Read more >Native Image Build Failures · Issue #13574 · quarkusio/quarkus
The build fails with the messages shown in Actual Behavior . There appear to be unsupported features in 3 methods: A detected MBean...
Read more >graalvm/native-image - Gitter
I am trying to build a native image on darwin arm64 with GraalVM 22.2.0-dev Java 17 CE. I have a project that depends...
Read more >Building a Native Executable - Quarkus
If the process cannot find the native image for some reason, or you want to test a native image that is no longer...
Read more >Quarkus Native image building throws error - Stack Overflow
I am trying to build the native Quarkus image using the GraalVM but I am running into following Build Failure error: [ERROR] Failed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The PR https://github.com/oracle/graal/pull/2443 for the Graal issue has finally been merged,
Thanks 😃