Skip to Content
Programming Social Applications
book

Programming Social Applications

by Jonathan LeBlanc
August 2011
Intermediate to advanced
546 pages
20h 53m
English
O'Reilly Media, Inc.
Content preview from Programming Social Applications

Setting Up Caja

Before we can test the Caja system against some actual files and gadgets, we need to obtain the Caja source from the project trunk and then build it.

First, we need to ensure that we have all of the prerequisites in place to download, build, and test the installation. Caja has the following minimum requirements:

  • Subversion (SVN) to download the source files from the trunk and to keep the downloaded project files up to date.

  • Java Development Kit (JDK) 6.

  • Apache Ant 1.7 for the build system.

  • JUnit for the testing framework. Once you’ve obtained it, simply place the junit.jar file in the $ANT_HOME/lib directory you set up for Ant.

Once we’ve met the prerequisites, we can start the process by obtaining the source code for the Caja project from the SVN trunk. Simply navigate to the folder location where you would like to load Caja and then run the following command:

svn checkout http://google-caja.googlecode.com/svn/trunk/ caja

This code issues an SVN checkout command against the Caja trunk and specifies our output directory to be the caja folder.

Next, we need to build the project using Ant. Simply navigate into the caja directory and run the ant command. This will initiate the Ant build process for the project:

cd caja
ant

After the build.xml script is loaded and the build process begins, you should be presented with the following output if the process is proceeding correctly:

Buildfile: build.xml

dirs:
.
.
.
BUILD SUCCESSFUL
Total time: 35 seconds

This series of build messages ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pro iPhone Development with SwiftUI: Design and Manage Top Quality Apps

Pro iPhone Development with SwiftUI: Design and Manage Top Quality Apps

Wallace Wang

Publisher Resources

ISBN: 9781449302481Errata