Build Phex with Eclipse

From PhexWiki

Jump to: navigation, search

Contents

Intro

This guide describes how to set up Phex to run on Eclipse. You will learn how to get the sources from SVN, create a compilable project in Eclipse and run or debug Phex from Eclipse.

Requirements

  • Eclipse 3.2
  • Subclipse 1.1.9 (as installed Eclipse plugin)

Setting up the project

  • Create a new project by going through the menu: "File" - "New" - "Project...".
  • In the project wizard open the "SVN" tree element and select "Checkout Projects from SVN".
  • On the next page select "Create a new repository location", click next and type the URL of the Phex SVN trunk:
    https://phex.svn.sourceforge.net/svnroot/phex/phex
  • When you are asked for the folder to check out, select the 'trunk' folder.
  • On the following "Check Out As" page select "Check out as a project configured using the New Project Wizard'. In the lower part check 'Head Revision'.
  • After clicking on 'Finish' a new wizard will appear, this time select 'Java Project'.
  • On the following page type in the project name 'Phex', select 'Create new project in workspace', choose a configured Java 5.0 JRE and select 'Create separate source and output folders'. Click on Next
  • On the source tab define a source folder called 'src', set the default output folder to 'Phex/output/classes'.
  • On the library tab click 'Add JAR...', in the dialog open up the 'Phex/thirdparty' folder and add all jar files you find in the directories below it.
  • Now you can click 'Finish' to start the checkout process (this might take a while). Afterwards the project in Eclipse is created.

Run/Debug the project

...

number-child
SourceForge.net Logo

Please visit our supporters
Amazon.com or Amazon.de