... the Physics Box2D Extension for AndEngine.


Postby Aaron.DS » Tue Mar 22, 2011 7:22 pm


just getting started with the physics extension, however when I try and initialize the engine I get the error as shown in the title.

W/dalvikvm( 3847): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lorg/anddev/andengine/extension/physics/box2d/PhysicsWorld;.<clinit>
D/AndroidRuntime( 3847): Shutting down VM
W/dalvikvm( 3847): threadid=1: thread exiting with uncaught exception (group=0x400207f0)
E/AndroidRuntime( 3847): FATAL EXCEPTION: main
E/AndroidRuntime( 3847): java.lang.ExceptionInInitializerError

the error is supposedly caused by this line:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.physicsWorld = new PhysicsWorld(new Vector2(0,11),false);
Parsed in 0.016 seconds, using GeSHi

Really hoping someone can help with this, as I'm totally lost as to why this is happening.
Last edited by Aaron.DS on Tue Mar 22, 2011 7:40 pm, edited 1 time in total.
Posts: 75
Joined: Fri Oct 08, 2010 8:23 pm
Location: London

Re: java.lang.ExceptionInInitializerError

Postby Aaron.DS » Tue Mar 22, 2011 7:40 pm

Solved, was missing the .so.
Thanks to AlexNunn
Posts: 75
Joined: Fri Oct 08, 2010 8:23 pm
Location: London

Re: [Fixed]java.lang.ExceptionInInitializerError

Postby vcarl » Sat Mar 26, 2011 4:51 am

Where'd you get the .so? I'm having the exact same problem, and I've been looking for that file for entirely too long. Repository clone?
Posts: 14
Joined: Mon Mar 21, 2011 10:45 am

Re: [Fixed]java.lang.ExceptionInInitializerError

Postby Radzell » Sat Mar 26, 2011 5:36 am

its in the lib/armebi folder
Posts: 467
Joined: Sun Jul 04, 2010 8:52 am

Re: [Fixed]java.lang.ExceptionInInitializerError

Postby zakir2k » Fri Aug 26, 2011 7:24 am

once you have the .so file, what do you have to do with it? Just place it into a corresponding lib/armeabi folder in your project, or is there something more? thanks
Posts: 11
Joined: Mon Aug 15, 2011 3:57 pm

Re: [Fixed]java.lang.ExceptionInInitializerError

Postby jdcm182 » Sun Nov 06, 2011 12:51 am

the file is here just right click on "view raw file" and save it to your "libs\armeabi" folder and that's it.. you don't have to do anything else

Posts: 3
Joined: Thu Nov 03, 2011 4:38 am

Re: [Fixed]java.lang.ExceptionInInitializerError

Postby bingbing7878 » Tue Mar 13, 2012 4:50 pm

How to generate the .so?

Why another project do not need it
Oh,I delete the .so after run the project and it can work too
Posts: 1
Joined: Tue Mar 13, 2012 4:15 pm

Re: [Fixed]java.lang.ExceptionInInitializerError

Postby Samdekkol » Thu Aug 13, 2015 8:54 pm

Very good and informative exchange .. Thank you!
Posts: 15
Joined: Thu Aug 13, 2015 7:21 pm

Return to Physics Box2D

Who is online

Users browsing this forum: No registered users and 3 guests