WebVM

Getting started with development

Git repo

We have a Git repository with the code.

Clone this to create your own local repo:

git clone ssh://git.webvm.net/srv/git/mtj

Building the source

First install the Eclipse Helios (3.6) RCP release for your platform from here:

http://www.eclipse.org/downloads/

Then install MTJ 1.1.0 by entering the URL of the update site into your update manager:

Help->Install new software

Then enter the following:

http://download.eclipse.org/dsdp/mtj/updates/1.1.0/stable

Now you need to set up a number of Eclipse projects - follow the instructions below.

org.antlr.runtime

To create each project in Eclipse, you will need to follow a similar pattern. Unfortunately, the process of setting everything up for the first time is quite convoluted. You need to use the Eclipse wizards to create projects, but these will automatically modify certain files (such as MANIFEST.MF, .classpath, .project files). If those files already exist in the repository you will need to explicitly revert those files because the ones in the repo are correct and the ones generated by the wizards are wrong.

Anyway, follow these steps. (Feel free to augment the instructions if they are not clear enough.)

Some details are slightly different depending on platform.

  1. New->Project->Plugin project

  2. Uncheck “Use default location” and instead browse to the directory in your local working copy of plugins/org.antlr.runtime

  3. Fill in org.antlr.runtime as the Project name

  4. Next

  5. Under “Options”, uncheck “Generate an activator…”

  6. Finish

  7. Close the document in the editor

  8. Revert the modified files back to the version that is in the repo.

  9. Refresh the project in Eclipse

Essentially, the same procedure is needed to add all of the following projects.

antenna.preprocessor.v3

Follow steps 1 - 9 as above.

org.eclipse.mtj.core

Follow steps 1 - 9 as above.

org.eclipse.mtj.ui

Follow steps 1 - 9 as above.

org.eclipse.mtj.toolkit.uei

Follow steps 1 - 9 as above.

org.eclipse.mtj.examples.jadextension

Follow steps 1 - 9 as above.

Running MTJ

  1. Run->Run configurations->Eclipse application

  2. Enter “MTJ” or similar for the Name

  3. Run