Box2D Forums

It is currently Sat May 18, 2013 6:30 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Aug 18, 2011 5:51 pm 
Offline

Joined: Thu Aug 18, 2011 5:31 pm
Posts: 6
Hey there, new to Box2D and so far I really like it. Truly an invaluable tool for my current project! However, I have run into a little problem when trying using the contact listener class.

It seems like the build of JBox2d I was using, version 2.0.1, doesn't have this class. I built it using the google SVN with Eclipse. The reason I was using the older version was because for some reason this tutorial: http://code.google.com/p/jbox2d/wiki/QuickStart just gave me a bunch of errors and the testbed refused to work. I believe this was because of the errors in the serializing-thing that was included, because of some lacking imports starting with "org.box2d", as in NOT "org.jbox2d".

I have looked through the forums here for an answer but there doesn't seem like anyone has had this problem before. Maybe it has something to do with that I'm using a newer version of Eclipse? They released a new one pretty recently.

Thanks for any answers!
/Niwsters


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 12:04 am 
Offline

Joined: Mon Jun 08, 2009 12:21 pm
Posts: 353
ContactListener is now in a different package, callbacks.

Make sure the serialization project has src/generated as a source folder. This should happen automatically from the .classpath... I'll check that out, maybe it's not in the repository


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 7:42 am 
Offline

Joined: Thu Aug 18, 2011 5:31 pm
Posts: 6
Alright, the src/generated-thing fixed it! Thanks for the quick reply. <:

Tell me if I could be of any use testing this or so, if you haven't found the problem already.


Top
 Profile  
 
PostPosted: Tue Aug 23, 2011 10:11 pm 
Offline

Joined: Mon Jun 08, 2009 12:21 pm
Posts: 353
I believe the classpath is fixed now for eclipse.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group