How to change the code of a existing library imported for my project in Eclipse?

My problem is with the physics-body-editor from aurelienribon exactly as reported here:

https://code.google.com/p/box2d-editor/issues/detail?id=25

Now there’s a solution at the bottom of that page, but it only provides the enhance source for BodyEditorLoader.java… link

How do I use that code in my project? I’m doing my project in Eclipse and bodyeditor-loader.jar is imported for my project.

You can build that class. Then open the jar with something like 7zip, find the directory the .class file should go in, and simply drag it in there.

Okay thanks! Seems to have worked… I had to figure out how to build it though.

What I did was create a new project in Eclipse, add libgdx, and then create a class file using that code.

Could I have done that easier? ???

Then I used WinRar to change the class files inside the jar.

You can use the setup-ui.jar in the libgdx distribution. Also made by Aurelien Ribon, allows you to easily create libgdx desktop/html/android/ios projects and has options to include TweenEngine/BodyEditorLoader. Also can update libgdx libs for any project.

^ Great, nice to know! I’ll keep that in mind for future reference.