Install Prerequisites
- Java 1.5 or later.
- Ant 1.6 or later. (Older versions may also work)
- Eclipse 3.2 or later. These instructions assume version 3.2.2, but other versions should behave similarly.
- Subclipse 1.4.x. You may also use Subversive, or check out the project manually with the client of your choice,
Check out Orc
Use the method of your choice to check out http://orc.googlecode.com/svn/trunk/OrcJava and import it into the Eclipse project OrcJava. Here is how to accomplish this using Subclipse:
- Launch Eclipse
- Go to File -> New -> Project ...
- Open SVN, choose Checkout Projects from SVN, and click Next >
- Choose Create a new repository location and click Next >
- Enter for the Url: http://orc.googlecode.com/svn
- Select trunk -> OrcJava and click Finish.
- Warning: Do not change the project name (from OrcJava) or the project will not build correctly.
Running Orc Programs
- Within Eclipse, open the Orc program you wish to run.
- Go to Run -> Run ...
- Right-click Java Application and select New
- Fill out the Main form as follows:
- Name
- Orc
- Project
- OrcJava
- Main class
- orc.Orc
- Click the Arguments tab and fill out the form as follows:
- Program arguments
- ${resource_loc}
- Click Apply
You only have to perform the above steps once. Then whenever you want to run an Orc program:
- Select the program source file in Eclipse (you can open it or simply select it in the Package Explorer or Navigator).
- Go to Run -> Run ..., select Orc, and click Run (after doing this once, you can use the dropdown menu of the "run" icon in the toolbar as a shortcut).
Language Project