2010年2月3日 星期三

JBox2D Demo on Eclipse



  • In Eclipse: 
  • Open New->Java project->create project from existing source
  • Type project name and browse the file which is extracted from Pendulum_src.zip => finish
  • Create a folder /lib/ at project
  • Right Click on /lib, select Import 
  • Select General / File System 
  • Choose the directory of 
  • Import the file jbox2d.jar 
  • Right click on the project and select "Properties" 
  • Click on "Java Build Path" and select the "Libraries" tab 
  • Click on "Add JARs..." and pick the file



After some sets.
result: