Build source

I cant build the source with the ant script in the jbox2d-library folder, because in the build-properties file there are local urls given:
Code:
<project name="build properties">
    <property name="sharpen.workspace.dir" value="C:/Users/Daniel/Projects/JBox2D" />
    <property name="eclipse.home" value="C:/Program Files/eclipse" />
    <property name="nant.exe" value="C:/nant-0.91-alpha2/bin/NAnt.exe" />
</project>


What is sharpen.workspace.dir? And why do you need nant
that was left over from a test conversion to c#. Use Maven instead (see the wiki here)
I still get errors while trying to build the project. In the org.jbox2d.serialization.pb.PbSerializer.java and org.jbox2d.serialization.pb.PbDeserializer.java there are imports that cannot be resolved, all of which start with org.box2d which apparently is not a valid package.
add the src/generated folder as a source folder

edit: updated the classpath for that project, it should build now
OK, thanks. I can now run the testbed. But how do I build the library-jar? I'm not familiar with Maven at all.
Run
Code:
mvn assembly:assembly
on the library project to get a jar with all dependencies included
And how can I do this inside eclipse? Under "Run as" theres no such option, under Maven theres no such option either...
blabla wrote:
And how can I do this inside eclipse? Under "Run as" theres no such option, under Maven theres no such option either...

Right click on your project > Export > Type JAR into the filter input box > Select JAR file.

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-33.htm
catbreath wrote:
blabla wrote:
And how can I do this inside eclipse? Under "Run as" theres no such option, under Maven theres no such option either...

Right click on your project > Export > Type JAR into the filter input box > Select JAR file.

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-33.htm


Nope. Do "Maven Build..." and type that in there. Or just use the command line.

Original thread: https://box2d.org/forum/viewtopic.php?t=7474