[SOLVED] Fatal error in JRE when using Minie

The native library gets loaded during App.start(), but you are trying to instantiate a physics control in App.main(), before App.start() has begun executing.

If you must arrange your software this way, you’ll need to explicitly load the native library in App.main() or App.setUp() like so:

NativeLibraryLoader.loadNativeLibrary("bulletjme", true);
public static void main(String[] args) {
    app = new App();
    setUp(app);
}

Here is my main.

Override
    public void simpleInitApp() {
        bulletAppState = new BulletAppState();
        bulletAppState.setThreadingType(BulletAppState.ThreadingType.SEQUENTIAL);

And this is part of bulletAppState. This problem is only in compiled .jar.

I fixed it!!!

<dependency>
      <groupId>com.github.stephengold</groupId>
      <artifactId>Libbulletjme</artifactId>
      <version>12.5.0</version>
</dependency>

After I removed that from my pom.xml, that bug in jar is gone!

1 Like

Minie v4.6.0 (released today) includes a fix for the fuzzyZero crash.

2 Likes