Error packing native image as local image
PS C:\Users\cc\Desktop\java> native-image Example
[example:7472] classlist: 1,642.36 ms, 0.96 GB
[example:7472] setup: 586.88 ms, 0.96 GB
Error: Default native-compiler executable 'cl.exe' not found via environment variable PATH
Error: To prevent native-toolchain checking provide command-line option -H:-CheckToolchain
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
PS C:\Users\cc\Desktop\java> a
Install Visual Studio
Select individual components
INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\shared;D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include.;
LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17134.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17134.0\ucrt\x64;D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\lib\x64;
Add to the PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64
Read More:
- [Solved] nacos Startup Error: Please set the JAVA_HOME variable in your environment
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration…
- How to Download File via Response (Example Code)
- [Solved] the resource is not on the build path of a java project
- [Solved] You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration proper
- Path does not chain with any of the trust anchors [Solved]
- JAVA Connect MYSQL Error: Path does not chain with any of the trust anchors
- [Solved] Could not find resource COM / atguigu / Dao / studentdao.xm, the mapper file for storing SQL statements could not be found and an error occurred
- How to Solve Mybatis error: invalid bound statement (not found)
- [Solved] IDEA error: sun.security.pkcs not found
- Mybatis-plus: How to Execute Native SQL
- [How to Solve] Invalid bound statement (not found)
- [Solved] Mybatis-Plus Error: Invalid bound statement (not found)
- [Solved] M1 Chip MacBook Pro Error: snappy-java FAILED_TO_LOAD_NATIVE_LIBRARY
- [Solved] IDEA Error: Unknown system variable ‘tx_isolation‘ at
- How to Solve FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
- Mybatis Error: Invalid bound statement (not found)
- [Solved] Annotation Customize Error: ElementType cannot be resolved to a variable
- [Solved] Compilation failed: internal java compiler error