question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraalVM: Native Image Build fails

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
quintessecommented, Sep 28, 2020

The PR https://github.com/oracle/graal/pull/2443 for the Graal issue has finally been merged,

0reactions
Auties00commented, Sep 28, 2020

The PR oracle/graal#2443 for the Graal issue has finally been merged,

Thanks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found