GraalVM Native

kakai 发布于 2023/08/23 10:35
阅读 467
收藏 0

在IDEA中使用 native-maven-plugin 转本地机器码,报错:

Executing: D:\Program Files\graalvm-jdk-17.0.8\bin\native-image.cmd @target\tmp\native-image-2432756053417950468.args
Error: Failed to find 'vcvarsall.bat' in a Visual Studio installation.
Please make sure that Visual Studio 2022 version 17.1.0 or later is installed on your system. You can download it at https://visualstudio.microsoft.com/downloads/. If this error persists, please try and run GraalVM Native Image in an x64 Native Tools Command Prompt or file a ticket.

实际上本机是安装了Visual Studio 2022的,且在D:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build 此路径下存在 ‘vsvarsall.bat’ 文件。

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部