ElectricalFire Compiler

Unix Build Instructions

Authors: Artur Biesiadowski and Scott Furman
Last Modified:

Requirements

ElectricalFire can be built under x86 Linux or FreeBSD.

Get the code

Download the code using CVS:
cvs co mozilla/ef
cvs co mozilla/nsprpub

Setup the Build Environment

  • Download Sun's JDK1.2 and unpack it.  (You will need a Solaris or Windows machine to unpack the distribution, but the only files required is the platform-independent rt.jar file.) Set your CLASSPATH environment variable to point to the JDK's rt.jar file. For example,

    setenv CLASSPATH ~user/jdk1.2/jre/lib/rt.jar

  • Set your library search path to point to the NSPR library. (You might want to build the library first as outlined in the "Build ElectricalFire" section below, so as to be sure you use the correct path.)

    setenv LD_LIBRARY_PATH /mozilla/dist/Linux_All_DBG.OBJ/bin
  • Build ElectricalFire

    Running ElectricalFire

    The build process above creates an executable named sajava, located under the mozilla/ef/dist/ directory. (The exact path depends on which platform you are building for. For example, it might be mozilla/ef/dist/Linux_x86_DBG.OBJ/bin/sajava.) sajava acts as a command-line replacement for the JDK java command. Before using sajava, ensure that your environment variables are set up correctly: