jMarkets v2 Installation Guide

System Requirements

jMarkets has been used successfully on many platforms, including Linux, Windows 2000/XP, and MacOS X v10.4 (Tiger).


Step 1: Getting jMarkets

Get jMarkets: The latest stable version of jMarkets 2, packaged in WAR (web archive) file, is available from the download page, along with the source edition and previous jMarkets releases.

The simplest method is to download the binary jMarkets.zip. Unzip this file into a directory.


Step 2: Getting JDK

Download JDK: Download and install JDK version 6 from  here (Windows and Linux only). It is not necessary to get any of the bundles, only the JDK is necessary. The Java Runtime (JRE) plugin must be installed for browsers to access jMarkets clients and servers.


Step 3: Setting up Tomcat

Download Tomcat: Download and run Tomcat 6.x Windows Service Installer from  here. Tomcat is a Java Servlet that hosts the jMarkets site.


Step 4: Setting up MySQL

Download MySQL: Download and install MySQL Community Server version 5.0 from  here. If using Windows, be sure to check the "install PATH" option during the installation process.

Set up MySQL: In the command prompt, move to the sql directory within your jMarkets2 folder. Then to enter the MySQL shell, type:

mysql -uroot -p

Enter the password you set up earlier in the MySQL installation process. Create the database by typing:

create database jMarkets2;  

Create the database user by typing:

grant all privileges on jmarkets2.* to jmarkets2@localhost identified by 'banana';
flush privileges;

Next, load the database schema with:

use jMarkets2;
source jMarkets2.sql; 

Finally, load initial users. init.sql can be easily modified to change the usernames and passwords.

use jMarkets2;
source init.sql; 


Step 5: Running jMarkets2

If you are building from source, use  Ant to generate the WAR file:

ant dist   //WAR file will be put in dist directory

Copy the jMarkets2 WAR file (found in the dist folder) in the webapps directory under your Tomcat installation.

Run the Tomcat service. The jMarkets test site should be at  http://localhost:8080/jMarkets2 and the experimenter (admin) site should be at  http://localhost:8080/jMarkets2/ExpLogin