Skip to content

Commit

Permalink
Merge pull request #2 from Electrostat-Lab/update-jsnaploader
Browse files Browse the repository at this point in the history
Update jSnapLoader to Version 1.0.0-epsilon
  • Loading branch information
stephengold authored Aug 5, 2024
2 parents d249c2f + feca855 commit 330ab9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jolt-jni-linuxarm64 = { module = "com.github.stephengold:jolt-jni-Linux_ARM64",
jolt-jni-macosx64 = { module = "com.github.stephengold:jolt-jni-MacOSX64", version.ref = "jolt-jni" }
jolt-jni-macosxarm64 = { module = "com.github.stephengold:jolt-jni-MacOSX_ARM64", version.ref = "jolt-jni" }
jolt-jni-windows64 = { module = "com.github.stephengold:jolt-jni-Windows64", version.ref = "jolt-jni" }
jsnaploader = "io.github.electrostat-lab:snaploader:1.0.0-delta"
jsnaploader = "io.github.electrostat-lab:snaploader:1.0.0-epsilon-1"

[bundles]

Expand Down
14 changes: 7 additions & 7 deletions src/main/java/com/github/stephengold/snapjolt/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ of this software and associated documentation files (the "Software"), to deal
package com.github.stephengold.snapjolt;
import com.github.stephengold.joltjni.*;
import com.github.stephengold.joltjni.enumerate.*;
import electrostatic.snaploader.LibraryInfo;
import electrostatic.snaploader.LoadingCriterion;
import electrostatic.snaploader.NativeBinaryLoader;
import electrostatic.snaploader.platform.NativeDynamicLibrary;
import electrostatic.snaploader.platform.util.PlatformPredicate;
import electrostatic4j.snaploader.LibraryInfo;
import electrostatic4j.snaploader.LoadingCriterion;
import electrostatic4j.snaploader.NativeBinaryLoader;
import electrostatic4j.snaploader.platform.NativeDynamicLibrary;
import electrostatic4j.snaploader.platform.util.PlatformPredicate;
import java.io.IOException;
/**
* A straightforward Java translation of the Jolt Physics "hello world" sample
Expand Down Expand Up @@ -72,7 +72,7 @@ public static void main(String[] argv)
loader.setRetryWithCleanExtraction(true);
try {
loader.loadLibrary(LoadingCriterion.INCREMENTAL_LOADING);
} catch (IOException e) {
} catch (Exception e) {
throw new IllegalStateException("Failed to load the joltjni library!");
}

Expand Down Expand Up @@ -217,4 +217,4 @@ public static void main(String[] argv)
// Destroy the factory
Jolt.destroyFactory();
}
}
}

0 comments on commit 330ab9c

Please sign in to comment.