1-4: Building Electric from Source Code 1-4-5: Eclipse Access to the savannah.gnu.org Repository
Install Eclipse:
Install from www.eclipse.org.
The instructions use the "Juno" or later version.
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.
Add Subversions to Eclipse:
Do: Help / Install New Software
Work with http://subclipse.tigris.org/update_1.6.x
Add Scala to Eclipse:
Do: Help / Install New Software
Work with http://download.scala-ide.org/sdk/e38/scala29/stable/site (check all 3)
Download Electric:
Do: File / Import
Choose: SVN / Checkout Projects from SVN
Repository is: svn+ssh://strubin@svn.savannah.gnu.org/electric/trunk
Select the top-level
When asked, choose "Check out as a project in the workspace" and name it "Electric"
Make two Electric projects, one for Java code, one for Scala code:
Do: File / New / Java Project
Browse to: Electric/electric-java
Set output to: electric-java/bin
Set external libraries to these JAR files in the "packaging" folder:
AppleJavaExtensions-1.4, scala-library-2.9.1.jar, slf4j-api-1.6.2, slf4j-jdk14-1.6.2,
j3dcore, j3dutils, vecmath, jmf.jar, bsh-2.0b4, jython.jar
Do: File / New / Java Project
Browse to: Electric/electric-scala
Set output to: electric-scala/bin
Set external libraries to these JAR files in the "packaging" folder: slf4j-api-1.6.2, slf4j-jdk14-1.6.2
Right-click on "electric-scala" project and choose "Configure / Add Scala Nature"
Link the two Electric projects:
Right-click the "electric-scala" project, choose Properties, then Java Build Path
Under the "Projects" tab, click "Add..." and add the "electric-java" project.
Right-click the "electric-java" project, choose Properties, then Java Build Path
Under the "Libraries" tab, click "Add Class Folder" and choose "electric-scala/bin".
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 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)