top
|
COMP 402: Production Programming
←
Scala Inheritance and the Scala Type System
→
|
Building Acumen
- Make sure you have JDK 6
- You can check this by running
javac -version
in your command prompt or terminal.
- If you don't have version 6 (1.6.*) then you can get it from Oracle. [link]
- If you are on Windows you need to make sure that the JDK's bin directory is in your PATH.
- Download required files
- Get the latest version of the Acumen source. [link]
- Get sbt v0.7.7. [link]
- Rename the sbt JAR file to remove the version number: sbt-launch.jar
- Unpack the files
- Unzip the Acumen source code in a convenient location.
- Move the sbt-launch.jar file you downloaded to the acumen-10.12.13/sources directory.
- Build with sbt
- Open a terminal and navigate to sources in your Acumen directory.
- Run this command to launch sbt:
java -jar sbt-launch.jar
- Once the sbt prompt appears run the
update
command. This is very important—the code will not compile if you skip this step!
- After the
update
command completes, run the compile
command.
- You're done! You can try the commands
test
or run
to verify your build.
For more info see: http://code.google.com/p/acumen-language/wiki/DevSetup
Building DrJava
- Make sure you have JDK 6
- You can check this by running
javac -version
in your command prompt or terminal.
- If you don't have version 6 (1.6.*) then you can get it from Oracle. [link]
- If you are on Windows you need to make sure that the JDK's bin directory is in your PATH.
- Make sure you have Apache Ant (a utility like make, but for building Java projects). [link]
- Make sure you have SVN
- You can check this by running
svn
in your command prompt or terminal.
- If you don't have a subversion client installed then you can get one from the Apache Subversion project page. [link]
- Check out the DrJava codebase
- Navigate to a convenient directory in your terminal and check out the latest version of the DrJava source code with this command:
svn co https://drjava.svn.sourceforge.net/svnroot/drjava/trunk/drjava
- You can replace the build.xml file in the root directory with this edited copy if you don't want to set as many environment variables (it only requires JAVA_HOME).
Build DrJava
- Navigate to your DrJava directory in your terminal and run
ant jar
to build the project.
- If ant is in your path then it should automatically load the build.xml file and build the jar target.
- If you get errors you might need to set some environment variables, such as JAVA_HOME, JAVA5_HOME and JAVA6_HOME for the build script to work correctly.
You're done! You should be able to run your newly-built drjava.jar using the java -jar
command.
For more info see: http://www.drjava.org/docs/developer/ch02s03.html
←
Scala Inheritance and the Scala Type System
→
URL: http://www.cs.rice.edu/~javaplt/402/12-spring/lectures/build/index.shtml