|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Comment:
Changes (1)
View Page History

This section outlines initial steps to setting up a Windows 7 PC for development. The following steps provide an overview of the installation required:
# Install Java 6 SDK (todo: verify Java 7 support by all SCAPE projects)
# Install Maven (version 3)
# Install Git for Windows (msysgit)
# Install Cygwin
# Install Python 2.7
# Install Eclipse
## Install Eclipse Git, Maven and Python plugins
# Install Tomcat
# Install Taverna
# Install Taverna
# Test
h2. Java 6 SDK


Download Java SE 6 SDK from [Oracle download site|http://www.oracle.com/technetwork/java/javase/downloads/index.html] and follow the instructions.
Once complete, you'll need to set up some environment variables and add Java to your command path:
{noformat}
JAVA6_HOME = <path_to_Java6_JDK>
JAVA_HOME = %JAVA6_HOME%
PATH = %PATH%;%JAVA_HOME%\bin;
{noformat}
h2. Maven 3
Download Maven 3 binary zip file from the [Apache Maven download site|http://maven.apache.org/download.html] and extract to a suitable directory (e.g. Program Files (x86)\Apache Software Foundation)
Again, you will need to set up environment variables:
{noformat}
M3_HOME = <path_to_apache-maven-3>
M3 = %M3_HOME%\bin
PATH = %PATH%;%JAVA_HOME%\bin;%M3%;
{noformat}
{note}
*Network User Profile and Multiple Development PCs...*
If you have a networked user profile you may find that, in your bash shells, the *~* points to a networked user directory (rather than a directory on your local drive). If you only have one development PC, this is potentially not a problem, however if you have multiple development PCs, by default they will all share the same dependency repository (Maven's default dependency repository can be found at \~/.m2).
{note}
h2. Git (for Windows - msysgit)
Follow the instructions on [GitHub|http://help.github.com/win-set-up-git/] to set up Git on a Windows machine. Make sure to select "Checkout as-is, commit Unix-style line endings" (see [Configuring how line-endings are handled by git|SP:Configuring how line-endings are handled by git]).
h2. Cygwin
h2. Python 2.7
h2. Eclipse Indigo (3.7)
h4. Eclipse Plugins
h2. Tomcat 7
Download Tomcat 7 binary zip (32 or 64bit depending on your machine) from the [Apache Tomcat 7 download site|http://tomcat.apache.org/download-70.cgi].
Unzip this to an appropriate directory such as C:\Tomcat\. Do *not* extract it to c:\Program Files\ (or presumably any other directory containing a space) - the [Toolwrapper|https://github.com/openplanets/scape/tree/master/xa-toolwrapper] seemed to have trouble deploying to Tomcat if Tomcat was placed in such a directory.
h4. User Authentication
Update C:\Tomcat\apache-tomcat-7.0.25\conf\tomcat-users.xml to add a manager role:
{code}
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user roles="manager-gui,manager-script" username="username" password="password"/>
</tomcat-users>
{code}
Remember your username and password (useful in projects that wish to deploy straight to Tomcat), or at least remember this file is where you specified them.
h4. Starting and Stopping the Tomcat Server
Tomcat can be started and stopped by running the startup.bat and shutdown.bat scripts found in c:\Tomcat\apache-tomcat-7.0.25\bin
h2. Taverna