Running Open Source Physics (OSP) using Eclipse
Updated 15 January 2007.
- Download the Open Source Physics Eclipse workspace
and install it in your home directory or subdirectory. Instructions for Linux.
- Run Eclipse and tell it the location of your workspace.
- 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
- Start a new project:
- Go to the File menu and choose New, and then choose Project.
- Select Java Project and click Next.
- Give your project a name, such as physics127, and select the
radio button "Create new project in workspace."
- Click Finish.
- 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.
- 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.
- Use the File menu to start a new Package or a new class.