 |
Squawk Build on Linux
These instructions are not as detailed as we like. please give feedback on what works and what doesn't.
Installing
- You need to have gcc and svn installed.
- 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
- 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):
- 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.
- d.sh copyphoneme Copies the cldc java files to the cldc folder. Only need to do this once.
- d.sh Compiles the java modules
- d.sh -prod -mac -o2 rom cldc Builds the VM squawk.exe
- 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
|