-
Notifications
You must be signed in to change notification settings - Fork 27
Unable to execute NativeImage #234
Comments
Same error. The stacktrace just indicate that the problem is at NativeImageTask line 67. |
--info reveals a cmd script referencing "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" |
|
I have the same "non-zero exit value 255" error. Which basicly says that my Java application can't run. If there Here is the SDK Archive for Windows: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/ I installed the SDK but still have this error. This maybe because I'm using Spring Boot. The main class is the start class which is configured in Gradle like this: springBoot { However the main class (in the Manifest) is org.springframework.boot.loader.JarLauncher. It doesn't matter whichI designate (the start or the main class) it fails with the same error. |
@assimbly my comments list multiple options for installers that fix your issue. Please read before you post. |
What do you mean exactly with that comment? I have used the command line:
Everything like SDK7.1 .Net4 and C compilers are installed (no warning/errors in the installer). Because I have multiple SDKs I used the following command: call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x86 However I still have the same error message (ERROR: The system was unable to find the specified registry key or value. ♀Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7. https://stackoverflow.com/questions/22188919/windows-sdk-registry-variable-not-found When checking the SDK directory and regedit value everything seems to be OK. |
Your original comment does not mention any of the steps I posted and has a small amount of incorrect/redundant information. If you followed the previous instructions then please include that in your post so people don't think you're ignoring them. This plugin calls the correct |
Hey everyone, I was trying to use this plugin on Windows 10, and I get the same error.
Stacktrace:
Any help is appreciated. |
@adityathakur-ast have you tried this: #234 (comment) , #234 (comment) |
Hi @josephsmendoza Apologies for not being clear earlier, I have gone through your comments, but I would like to avoid a work-around, so I used "Ubuntu on Windows" which seems to work at this particular step but fails at later stage due to lack of support for graalvm 19.3+ versions. Just to be more clear, I have checked that there is an existing PR for that, if possible, I would like to help with two things here :
|
Let me clarify, in case it wasn't obvious, that the Windows 7 SDK is not a workaround. It is a requirement for building a native image on windows with this plugin. You could install a newer Windows SDK and GraalVM, call |
What happened?
I've been trying to generate a native image on my proyect but after exectuting the
nativeImage
task y get this error:NOTE: Using Windows OS, Gradle 5.6.4.
The text was updated successfully, but these errors were encountered: