[SOLVED] UnsatisfiedLinkError after switching to Minie physics

Are you running debugger?

I set debug true in gradle, should I disable it?

yes

Gotcha, one second

Well, disabling debug got things to run, but now I’m getting:

Uncaught exception thrown in Thread[jME3 Main,5,main]
AssetNotFoundException: Common/MatDefs/Terrain/Unshaded.j3md

in the jme3 window

Getting closer, in projects tab, under dependencies do you see core?

And terrain.

Yes, I see both, under compile dependencies, but not under runtime

Thank you for the help and guidance by the way, I really appreciate it

Yes but it uses implementation so it should work.
When you expand the terrain jar, you should see that file Common/MatDefs/Terrain/Unshaded.j3md.

When you expand the src folder do you see the file that shows an error?

If you open the file, try clicking on the icon on an error line to see if it offers a suggestion to import.

Heres what I have minus minie stuff.

dependencies {

    implementation "org.jmonkeyengine:jme3-core:$jmeVersion"
    implementation "org.jmonkeyengine:jme3-desktop:$jmeVersion"
    implementation "org.jmonkeyengine:jme3-lwjgl:$jmeVersion"

    //Those are jme3 additional library uncomment the ones you need
    //implementation "org.jmonkeyengine:jme3-android-native:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-android:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-bullet-native-android:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-blender:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-bullet-native:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-bullet:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-effects:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-jogg:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-jogl:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-lwjgl3:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-networking:$jmeVersion"
    //implementation "org.jmonkeyengine:jme3-plugins:$jmeVersion"
    implementation "org.jmonkeyengine:jme3-terrain:$jmeVersion"

    //You need to uncomment nifty repository in the repositories section if you use this dependency
    //implementation "org.jmonkeyengine:jme3-niftygui:$jmeVersion"

    runtime project(':assets')
}

Gotcha, ill check that out right now

Oddly enough, it seems that Unshaded is missing, but others are there. Did Unshaded get removed in 3.3?

Ya, seems Unshaded is no longer in 3.3: jmonkeyengine/jme3-terrain/src/main/resources/Common/MatDefs/Terrain at master · jMonkeyEngine/jmonkeyengine · GitHub

Yes, Im searching logs of repo to see what happened.

Edit: Looks like another breaking change tossed in without notice as near I can see so far.

Hahaha I’m slowly dying inside. So apparently, the Unshaded texture moved to Common/MatDefs/Misc: jmonkeyengine/jme3-core/src/main/resources/Common/MatDefs/Misc at master · jMonkeyEngine/jmonkeyengine · GitHub which I confirmed in the IDE, so now the basic test runs fine, but I still get the same error this all started out with as soon as Minie gets involved. So, even after upgrading to 3.3, which is working, and switching to gradle, which is working(?), I still can’t get Minie to work.

Moved since when? What version were you using before that had it in a different place?

It’s been there for 10 years or something.

1 Like

Honestly not sure, I just copy and pasted some old test code I had to test out 3.3 (was previously using 3.2) and it had Common/MatDef/Terrain/Unshaded.j3md. So I was probably wrong in what I said, and it was most likely in the terrain dir until 3.3 . I’m not sure, I’ve been going for hours at this and am pretty burnt out.

Sorry for misspeaking, I’m just so focused on figuring out this UnsatisfiedLinkError. I’m trying to get this fixed before I crash out for the night