Running Open Source Physics (OSP) using Eclipse

  1. Download the Open Source Physics Eclipse workspace and install it in your home directory or subdirectory. Instructions for Linux.
  2. Run Eclipse and tell it the location of your workspace.
  3. Running an existing program. For example, choose one of the App programs in ch02 (src->org->opensourcephysics->sip->ch02), say CalculationApp, and right click (Ctrl-click for Mac) to select Run As Eclipse Application.
  4. Start a new project:
    1. Go to the File menu and choose New, and then choose Project.
    2. Select Java Project and click Next.
    3. Give your project a name, such as physics127, and select the radio button "Create new project in workspace."
    4. Click Finish.
    5. You should now see your project in the left hand window. To improve how the files are listed here, click on the upside down triangle and select Layout (or Package Presentation if Layout is not there) and choose Hierarchical.
    6. In the bottom window you may see a bunch of warnings. You don't need to worry about them. Click on the X symbol next to "Problems" so they won't show.
    7. Use the File menu to start a new Package or a new class.
Updated 15 January 2007.