Latertater / jbox2d

Automatically exported from code.google.com/p/jbox2d
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

E/AndroidRuntime(1254): java.lang.NoClassDefFoundError: org.jbox2d.common.Vec2 #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
when i try to init a new Vec2 in a Constructor:
Vec2 gravity = new Vec2(0, 10f);  

What is the expected output? What do you see instead?

my expected output is to darw something on surfaceView,but it cause a runtime 
error

What version of the product are you using? On what operating system?
i am using jbox2d-2.1.2.2 and i add 
"jbox2d-library-2.1.2.2-jar-with-dependencies.jar"into my build path,my code 
can pass the build.
i an using fedora16 X86_64 OS.

Please provide any additional information below.
my code is like this:
this is a Constructor:
public MySurfaceView(Context context) {
        super(context);
        this.setKeepScreenOn(true);
        sfh = this.getHolder();
        sfh.addCallback(this);
        paint = new Paint();
        paint.setAntiAlias(true);
        setFocusable(true);
        gravity=new Vec2(0, 10);        
        world = new World(gravity, true);
    }

and i use it in a activity:setContentView(new MySurfaceView(this));

Original issue reported on code.google.com by gaojin19...@gmail.com on 21 Oct 2012 at 8:59

GoogleCodeExporter commented 9 years ago
What is the runtime error?  I need more info.

Original comment by toucansa...@gmail.com on 27 Jan 2013 at 6:06

GoogleCodeExporter commented 9 years ago
This has to do with you including the right libraries, not this engine.

Original comment by danielmu...@gmail.com on 6 May 2013 at 5:26