AMAPstudio

### Sidebar

This is an old revision of the document!

# How to install the SVN-AMAPstudio version for the modellers

This documentation is for AMAPstudio modellers (according to the AMAPstudio charter), it explains how to get a local copy of AMAPstudio on their computer to be able to add their own work in the platform.

AMAPstudio software sources are hosted on a Subversion repository, these sources are available for the developers and modellers only (see the AMAPstudio charter).

A Login is required (see section 2. below).

Important note

If you are not already an AMAPstudio modeller and if you would like to integrate a model in AMAPstudio, please see Who can join the AMAPstudio project ?, and contact the development team (see contact) in order your registration to be validated.

### 1. Install Java SE 8 (JDK)

AMAPstudio relies on Java version 1.8 (or Java 8): Java Development Kit Standard Edition version 1.8.

On windows

• Modify the PATH environment variable according to your installation directory
• Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System > Advanced > Environment Variables
• In the PATH system variable, add the location of the bin/ folder of the installed JDK at first position. A typical value is: C:\Program Files\Java\jdk1.8.0_<version>\bin (you may seek this directory in a file manager and copy / paste the path)
• A ; must be added between the paths in the PATH variable
• You should only have one bin/ directory for a JDK in the path at a time. Those following the first instance will be ignored.

On Linux

If the PATH is to be updated, have a look in /etc/environment, ~/.bashrc or ~/.profile. You may have a look at this doc to change the PATH under Linux Ubuntu.

→ To check if your installation of java is correct, check the FAQ.

### 2. Create an amap-dev account

AMAPstudio files are hosted on the amap-dev development server. To access to AMAPstudio files, you need to create an account on the server.

### 3. Get a local copy of the project (checkout)

• Start SmartSVN
• During installation, SmartSVN may ask you if you want to evaluate the Pro version. You can ignore this message
• Choose Check out project from repository
• Quick Checkout:
• URL: http://amap-dev.cirad.fr/svn/jeeb/trunk
• Local directory: the directory you choose for your local copy (e.g. C:\amapstudio OR /home/coligny/java/amapstudio)
• Note: This is your new login password you entered when you registered on amap-dev at section 2
• Validate and finish

#### 4. SVN usual operations

Later when you will need to get the last changes of the server downloaded to your local copy, you will use SmartSVN and the Update command.

When you will have to upload your own changes onto the server, you will use the SVN Commit command.

You may ask for support to well understand the process when updating your local copy or commiting your changes the first time.

### 5. Recompile and start AMAPstudio

• Open a terminal (Dos prompt under windows, shell under linux)
• Go to the amapstudio/ directory with cd
• Recompile the project
ant compile
• If you need a full recompilation (should be done after each update)
ant clean compile

• Then you can launch the AMAPstudio applications.

Example, launch Simeo

The simeo.bat or simeo.sh scripts are used to start simeo :

Under Windows

simeo

Under Linux

sh simeo.sh