The Source for Java Technology Collaboration


Squawk Build on Linux

These instructions are not as detailed as we like. please give feedback on what works and what doesn't.

Installing

  1. You need to have gcc and svn installed.
  2. Java 5 SDK should be installed as your default JRE. If Java 5 SDK is installed but is not registered as your default Java SDK (and you have no intentions to do it), you can change the d.sh script:
    Replacing the line
        JAVA_HOME=`which java`
    with
        JAVA_HOME='<path to JRE5>'
    Ex:
        JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/java

Preparing

  1. Get squawk by entering https://squawk.dev.java.net/svn/squawk/trunk in the URL box in the SVN window or command line. See https://squawk.dev.java.net/servlets/ProjectSource for details.

Building/Running

Open a Terminal window and change directory to the root of your squawk SVN repository. The file d.sh should be in this directory. Now you need to run a series of build commands to get to the point where squawk runs on the host. Enter each of the following commands (the text in italics are comments):
  1. d.sh jvmenv     Tells you what environment variable needs to be set. Once you set this variable permanently, you only need to do this once.
  2. d.sh copyphoneme     Copies the cldc java files to the cldc folder. Only need to do this once.
  3. d.sh     Compiles the java modules
  4. d.sh -prod -mac -o2 rom cldc     Builds the VM squawk.exe
  5. squawk com.sun.squawk.Test     It takes a seconds to complete. Do not get scared about the nullpointer exception: it is part of the test.

Optional build steps:

  • d.sh clean     Removes classes files - both preverified and not, and preprocessed source files. Do only as needed, such as when changing builder properties.
  • cd builder; bld.sh; cd ..     Builds the builder after changing the builder source.

For more details on building and running Squawk, please see BuildingSquawk.

-- Main.derek_white - 10 Jul 2008

Topic OnLinux . { Edit | Ref-By | Printable | Diffs r4 < r3 < r2 < r1 | More }
 XML java.net RSS

Revision r4 - 05 Dec 2008 - 17:20:16 - Main.derek_white
Parents: WebHome > Squawk > BuildingSquawk