Skip to content

Commit cf432ed

Browse files
committed
DOC: show workaround for oracle/graal#1762
1 parent bdf5913 commit cf432ed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/index.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12964,6 +12964,19 @@ This https://picocli.info/picocli-on-graalvm.html[older article], "Picocli on Gr
1296412964

1296512965
See also this https://github.com/remkop/picocli-native-image-demo[demo Gradle project] and this https://github.com/remkop/picocli-native-image-maven-demo[demo Maven project] that provide a simple complete CLI app, with build instructions, that developers can clone, and build to get the stand-alone executable.
1296612966

12967+
[TIP]
12968+
====
12969+
Native images on Windows have the https://github.com/oracle/graal/issues/1762[problem] that the native image does not include the required dependency `msvcr100.dll` (for Java 8) or `VCRUNTIME140.dll` (with GraalVM 19.3 or later for Java 11). On Windows machines where this dependency is not in the `PATH`, the native image fails to start, and shows an error dialog "System Error: The program can't start because VCRUNTIME140.dll is missing from your computer".
12970+
12971+
Many thanks to https://github.com/mmellon[Matthew Mellon] for https://github.com/oracle/graal/issues/1762#issuecomment-1297370039[suggesting] to use https://osdn.net/projects/pefrm-units/[pefrmdllembed] as a workaround. Syntax:
12972+
12973+
[source,bash]
12974+
----
12975+
pefrmdllembed -impinj VCRUNTIME140.DLL your-native-image.exe your-native-image-fixed.exe
12976+
----
12977+
12978+
====
12979+
1296712980
=== Really Executable JAR
1296812981

1296912982
A https://skife.org/java/unix/2011/06/20/really_executable_jars.html[really executable JAR]

0 commit comments

Comments
 (0)