Hey guys…
I recently switched rom using the 3.0 sdk to 3.1… Everything works great… But when i try to run my unit tests i get the following error
[VerboseTestNG] java.lang.UnsatisfiedLinkError: com.jme3.bullet.collision.shapes.CapsuleCollisionShape.createShape(IFF)J
[VerboseTestNG] at com.jme3.bullet.collision.shapes.CapsuleCollisionShape.createShape(Native Method)
[VerboseTestNG] at com.jme3.bullet.collision.shapes.CapsuleCollisionShape.createShape(CapsuleCollisionShape.java:119)
[VerboseTestNG] at com.jme3.bullet.collision.shapes.CapsuleCollisionShape.<init>(CapsuleCollisionShape.java:63)
[VerboseTestNG] at com.jme3.bullet.control.BetterCharacterControl.getShape(BetterCharacterControl.java:513)
[VerboseTestNG] at com.jme3.lostVictories.characters.BetterSoldierControl.<init>(BetterSoldierControl.java:34)
[VerboseTestNG] at com.jme3.lostVictories.characters.Soldier.createCharacterControl(Soldier.java:131)
[VerboseTestNG] at com.jme3.lostVictories.characters.Soldier.createCharacterControl(Soldier.java:35)
[VerboseTestNG] at com.jme3.lostVictories.characters.GameCharacterNode.<init>(GameCharacterNode.java:122)
[VerboseTestNG] at com.jme3.lostVictories.characters.AICharacterNode.<init>(AICharacterNode.java:51)
[VerboseTestNG] at com.jme3.lostVictories.characters.Soldier.<init>(Soldier.java:43)
[VerboseTestNG] at com.jme3.lostVictories.characters.CadetCorporal.<init>(CadetCorporal.java:51)
[VerboseTestNG] at com.jme3.lostVictories.characters.AICharacterNodeTest.createCadetCorporal(AICharacterNodeTest.java:186)
[VerboseTestNG] at com.jme3.lostVictories.network.ResponseFromServerMessageHandlerTest.testCommandingOfficerMovingOutOfFrame(ResponseFromServerMessageHandlerTest.java:129)
Everyhting work fine when i run the app but test dont seem to find the right native lib… I tried adding
-Djava.library.path="/Users/dharshanar/development/jmeProjects/lostVictoriesClient"
to my project VM options but there was no change
if i do
pwd
/Users/dharshanar/development/jmeProjects/lostVictoriesClient
find . -name "*.dylib" | xargs grep "com.jme3.bullet.collision.shapes.CapsuleCollisionShape"
Binary file ./libbulletjme.dylib matches
so it looks like the library is there but maybe the wrong version. Im not sure if its the wrong native library coming over from when i was using the project in 3.0 And i have no idea why it would work when i run the game but not test…
any help would be greatly appreciated