Source:Libs
From Wiketomica
Etomica depends on various 3rd-party libraries, mostly to provide graphical capabilities. This page describes how to tell Eclipse how to use them. Most of the projects also depend on G3DSys for 3D graphics rendering. This can be satisfied as a jar or via an Eclipse project. The 3rd-party libraries are available for download on the Etomica web site.
- Download ptplot. Download either G3DSys or both vecmath and g3d. If you won't be touching the G3DSys code at all or updating anytime soon, you can get by with the G3DSys jar. You'll also need Jama.
- Unzip the archives to some location.
- From the menu, select Window->Preferences
- Select Java->Build Path->User Libraries
- For each JAR file,
- Click the New... button.
- Give it a name, click OK.
- Select the new library and click Add Jars...
- Select the jar file.
- For each Etomica project in Eclipse,
- Select the project in Package Explorer, and then select File->Properties.
- Select Java Build Path.
- Click the Add Library... button.
- Select User Library and click the Next> button.
- Click the checkbox for each library: ptolemy, g3d, vecmath, g3dsys, Jama, etc. Different projects need a different subset of the libraries, but over-doing it won't hurt anything.
- Click the Finish button.
If you grabbed the g3dsys.jar, you're done! Otherwise, you need to pull the G3DSys project from CVS.
- First create a G3DSys project:
- In the "File" menu, select "New", then "Project".
- Select "Java Project", then click the "Next" button.
- Give it a project name, choose an appropriate location and whether to use separate source and output folders or not. Then click "Next>"
- In the "libraries" tab, click the "Add Variable" button.
- Select "JUNIT_HOME" and click the "Extend" button.
- Select "junit.jar" and click "OK".
- Click the checkbox for the g3d and vecmath libraries.
- Click "Finish".
- Check out G3DSys
- Open the new reposity, then open up HEAD.
- Right click on "g3dsys" and select "Check Out As..."
- If you selected separate src and bin folders for the project
- click "Next"
- Select the src folder from your G3DSys project and click "Finish"
- Otherwise, just select "Check out into an existing project", and click "Finish"
