-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[GR-52996] NPE when using the minimal vs_BuildTools.exe with vswhere.exe in 24.1.0 #8669
Comments
Thanks for the feature request! We've got some good news for you: As of #8084, Native Image uses vswhere.exe to locate Visual Studio installations. This make the detection more reliable and it should also support custom installation locations. This feature will be available in the next EA 05 build of GraalVM and will ship with GraalVM for JDK 23. Please feel free to give this a try and let us know if something is not working for you. Hope this helps! |
Thanks for your reply,After my testing there are still problems. My env Test result native-image -jar .\untitled-1.0-SNAPSHOT.jar test
|
I'm not sure if vs_BuildTools.exe fulfills the requirements but we should handle the NPE. Thanks for bringing this up! |
Feature request
Is your feature request related to a problem? Please describe.
For my personal reasons, I need to install msvc and windows sdk in other path, so when using cmd to run native-image, I need run vcvars64 before using native-image.
Now i'm try Gradle plugin for GraalVM Native Image building, The previous method is useless.
Describe the solution you'd like.
Specify a enviroment path to found vcvarsall or add a arg to specify it.
Describe who do you think will benefit the most.
GraalVM users, developers of libraries and frameworks and those tho first try native-image.
Describe alternatives you've considered.
for learning purposes,I found these way to solve problem.....
Express whether you'd like to help contributing this feature
I apologize, but I don't have the ability to contribute at the moment due to my limitations.
The text was updated successfully, but these errors were encountered: