-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
native-image fails on windows with command size limit (CreateProcess error=206) #2387
Labels
Comments
I created a PR with a possible solution. Is that what you were looking for @Mobe91 ? |
quintesse
added a commit
to quintesse/graal
that referenced
this issue
May 8, 2020
quintesse
added a commit
to quintesse/graal
that referenced
this issue
May 8, 2020
quintesse
added a commit
to quintesse/graal
that referenced
this issue
May 11, 2020
quintesse
added a commit
to quintesse/graal
that referenced
this issue
May 11, 2020
quintesse
added a commit
to quintesse/graal
that referenced
this issue
Sep 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using io.quarkus:quarkus-maven-plugin:1.3.2.Final and GraalVM CE 20.0.0 (Java 11) to build a native image on Windows 10 that issues to following command:
This in turn launches another command targeting java.exe but the -imagecp argument is way too long which is why it fails with "CreateProcess error=206, file name or extension too long".
The problem is caused by
https://github.com/oracle/graal/blob/00e729aa62e22646015f3051be7f3c1ae066ff01/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java#L1169
. Rather than concatenating all the paths and passing it to the command, this should generate a classpath jar and pass it instead. Alternatively, an args file could be used for Java 9+ as described here.Describe GraalVM and your environment:
The text was updated successfully, but these errors were encountered: