Getting Started with Celeste and Eclipse
- Get a copy of Java SE 1.6 http://java.sun.com See the instructions in HOWTO Build Celeste. Mac OSX users: pay particular attention to setting up Java on Mac OSX.
- Get a copy of the Celeste sources. See the guides on how to check out from the repository or get a tarball.
- Download Eclipse
From the http://www.eclipse.org website, download the latest version of "Eclipse IDE For Java Developers" for your system. - Start Eclipse
Do whatever is necessary on your computer to install and start the eclipse platform. If this is the first time you've run Eclipse, it will prompt you to create an Eclipse workspace. The Eclipse workspace is NOT the Celeste source directory---Eclipse can have muliple projects within a Workspace, each with their own directory hierarchies of sources. - Incorporate Celeste
- Select from the main Workbench menu: File ->New ->Project...
- A dialog box is displayed
- Open up the Java item and select Java Project from existing Ant Buildfile.
- Type in the Project name: field the name of your project (Eg. "Celeste"), select the Ant buildfile: which is the file build.xml in the top-level directory of your sources, then select javac task found in target "compile"
Leave the Link to the buildfile... unchecked. - Click Finish (If the main Eclipse window shows again, select "Workbench")
NOTE: If you get build errors in Eclipse, check the build environment for the project by:
- Choosing Project->Properties to display the Properties dialog window.
- Click on the Java Build Path
- Select Libraries pane.
- You may see an error message about deprecated libraries.
- Click the Add Library... button and select the JRE System Library, click the Next button.
- In the Add Library dialog window, select *Alternate JRE" then "Installed JRE's" displaying the 'Installed JREs' dialog window.
- Choose the "1.6 JRE" and click OK
- Now you're back at the Libraries pane. Remove the old JRE that was there previously, leaving the one you just added.
- Click the OK button.
- Then choose Project->Clean... from the drop down menu.