Skip to content

Commit

Permalink
trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Sep 9, 2024
1 parent e444bfc commit 79ac10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/software/amazon/awssdk/crt/CRT.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public final class CRT {
// Scan for and invoke any platform specific initialization
s_platform = findPlatformImpl();
jvmInit();
String graalVMImageCode = System.getProperty("org.graalvm.nativeimage.imagecode");
try {
// If the lib is already present/loaded or is in java.library.path, just use it
System.loadLibrary(CRT_LIB_NAME);
} catch (UnsatisfiedLinkError e) {
String graalVMImageCode = System.getProperty("org.graalvm.nativeimage.imagecode");
// otherwise, load from the jar this class is in
if (graalVMImageCode != null && graalVMImageCode == "runtime") {
throw new CrtRuntimeException(
Expand Down

0 comments on commit 79ac10e

Please sign in to comment.