- Install Eclipse.
- Install the latest version from www.eclipse.org.
The instructions here presume that you have Helios or later.
- Because compiling Electric consumes more than average memory,
edit the file eclipse.ini in the installed area and change the last line from -Xmx512m to -Xmx1024.
- Make sure Eclipse is up-to-date by doing: Help / Check for Updates
- Add Maven to Eclipse
- Do: Help / Install New Software
- Work with: http://m2eclipse.sonatype.org/sites/m2e
- Add Subclipse to Eclipse
- Do: Help / Install New Software
- Work with http://subclipse.tigris.org/update_1.6.x (check all 3)
- Add Scala to Eclipse:
- Do: Help / Install New Software
- Work with http://download.scala-ide.org/update-current-36 (check all 3)
- Add Maven Extras to Eclipse:
- Do: Help / Install New Software
- Work with http://m2eclipse.sonatype.org/sites/m2e-extras
- Add Mylyn to Eclipse:
- Do: Help / Eclipse Marketplace
- Search for Mylyn, click Install
- On 64-bit machines, you may have to install the "JavaHL" portion of Slik-Subversion
at www.sliksvn.com
- Download Electric:
- Do: File / Import
- Choose: Maven / Check out Maven Projects from SCM
- Repository type is: svn, path is: https://svn.java.net/svn/electric~svn/trunk
- Make sure the Scala code is built properly:
- Right-click on electric-merge, choose: Configure / Add Scala Nature
- Make a launch configuration:
- Do: Run / Run configurations
- Create a new launch configuration (icon in upper-left)
- In the Main tab, set the project to electric-core and the main class to com.sun.electric.Launcher
- In the Arguments tab, set the VM arguments to -mx1200m (to request a 1.2GB JVM)