Active development of JAMWiki has ceased, and bug fixes and support will be limited at best. If you are interested in taking over management of JAMWiki please send an email to the jamwiki-devel mailing list.

Building from source/Eclipse




Install Subclipse, the Maven Eclipse and the Tomcat Launcher plugins.

  1. In Eclipse go to Help → Software Updates → Find and Install.
  2. Choose "Search for new features to install"
  3. The required plugin URLs for subclipse and M2Eclipse are:
  4. For the Tomcat Launcher see the above URL for full install instructions.

PLEASE NOTE: I experienced many issues installing all of these plugins on a fresh install of Ubuntu 12.04. I don't know if it was somehow my personal configuration or if there is some issue. I was eventually able to overcome by fully closing Eclipse, restarting, and trying everything again. Once I did this I experienced no issues installing the plugins mentioned above.

Once installed, select the "SVN Repository" Eclipse perspective and add

as a repository URL.
You should now be able to click on this repository and open the SVN tree:


Right click on the trunk node, select the "Find/Check out as..." menu option. In the following dialog box you can Check out the source code:


Maven package build

Now change back to the Java perspective.

In the package explorer view do a right mouse click on the pom.xml file and select the menu Run As → Maven build....
In the appearing dialog box select the Select... button in the Main tab and choose the package goal:


I needed to run this twice and increase the default java heap for eclipse to -Xmx1024m, because in the first run I get an OutOfMemoryError exception:

[INFO] Compiling 2 source files to C:\IDE\workspace\jamwiki_svn\javadiff\target\classes
org.apache.maven.plugin.CompilationFailureException: Compilation failure
Failure executing javac, but could not parse the error:

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
	at Method)


Configure the JAMWiki Eclipse project

The Maven package build has now generated some additional files and directories.

Copy these generated jflex files:






Delete these files from the



  • jamwiki-core-0.6.6-SNAPSHOT.jar
  • jamwiki-web-0.6.6-SNAPSHOT.jar
  • bliki-1.0-SNAPSHOT.jar or bliki-3.0-SNAPSHOT.jar

and delete this file


Select the Eclipse Window → Preferences... menu. In the dialog select the node Java → Build Path → Classpath Variables and:

  1. define an Eclipse "Classpath Variable" called JAMWIKI_WEBAPP which points to
  2. define an Eclipse "Classpath Variable" called TOMCAT_HOME which points to your Tomcat home directory. In my case it points to:

After that, select the Tomcat node and define your Tomcat settings. Be sure that the directory C:\server\tomcat-6.0.13\conf\Catalina\localhost exists:


Edit the .project file, so that the project is a Java, Maven2 and Tomcat plugin related project:

<?xml version="1.0" encoding="UTF-8"?>

Create a new source folder named mysrc.

Change the .classpath file in the following way:

<?xml version="1.0" encoding="UTF-8"?>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="src" path="my-src"/>
	<classpathentry kind="src" path="addon-src"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry combineaccessrules="false" kind="src" path="/"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="lib/junit.jar"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="var" path="TOMCAT_HOME/lib/servlet-api.jar"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="lib" path="lib/mysql-connector-java-3.1.10-bin.jar"/>
	<classpathentry kind="lib" path="/"/>
	<classpathentry kind="output" path="bin"/>

Do a right mouse click on your project and select menu Properties. In the dialog box select the Tomcat node. In the dialog box define the Application-URI as jam066 and the sub-directory for the webapps root as /jamwiki-war/target/jamwiki-war-0.6.6-SNAPSHOT: m2eclipselaunch004.png

Run JAMWiki

In the Java perspective's toolbar, where are three buttons to

  • start Tomcat
  • stop Tomcat
  • restart Tomcat


Press the Start Tomcat button and you should see the Tomcat logging in the Eclipse Console view. (If the Console view isn't open, you can open it in the menu Window → Show View → Console)

Now open a browser and run JAMWiki with the following URL:

JAMWiki should automatically switch to the installation setup page:

Create a directory for your JAMWiki cache, search, database and upload files:


and configure it in the setup page. I've used the following path settings in the setup process:


Stop Tomcat now and do a refresh (right mouse click in the Package Explorer view and select menu Refresh F5) of your JAMWiki Eclipse project.

The JAMWiki installation created a new properties file:


Copy this file directly under your mysrc folder.

In the file you can now directly edit the configuration and restart Tomcat afterwards. For example I configured my Bliki engine as the default Wikipedia syntax parser: