How to setup Castor project in eclipse

# How to setup Castor project in eclipse

## Introduction

Are you just interested in how Castor source looks like, want to report a bug or enhancement request or like to contribute to the project? The first step we suggest you to do is to setup a Castor project with eclipse IDE. As we use eclipse to work at Castor, there is everything in place to work with eclipse. While you are free to use other IDE's, you will need to configure things yourself with them.

## Prerequisites

- Download and install JDK 1.5 or newer

- Download and install Eclipse 3.x

- Install the latest Subclipse eclipse plugin

- Optionally install the latest CheckStyle eclipse plugin

## Create Project

- Create a New Project in eclipse from `File -> New -> Projects`

- Select `"Checkout Projects from SVN"` in `"SVN"` from `"Select a wizard"` window and click `Next` (this option will only come if you have installed the subclipse plugin)

- Select `"Create a new repository location"` and click `Next`

- Enter the URL `"https://svn.codehaus.org/castor/castor"` and click `Next`

- Select the folder `"trunk"` from the list and click `Next`

- In `"Check Out As"` window the name of the project will be `"castor"` then click `Next`

- At last, you can choose the workspace and click `Finish`

- You can see castor project in your `"Project Navigator" of eclipse`

## Troubleshooting

If you have trouble with Subclipse behind a proxy server: In Windows development environment, open the file: `C:\Documents and Settings\MyUserId\Application Data\Subversion\servers` in text editor. Near the bottom of that file is a [global] section with http-proxy-host and http-proxy-port (user and password also) settings. Uncommented those lines, modified them for your proxy server and go back to the SVN Repository view in Eclipse. This should solve the problem.