- Adobe Flash Player 10.0+
- Java Servlet Container (Tomcat or Glassfish)
- MySQL or PostgreSQL
- Install the following packages (Ubuntu/Debian):
- oracle-java7-jdk
- ant
- tomcat7
- git
- junit4
- libservlet2.5-java
- Download the Adobe Flex 3.6 SDK and extract it to a directory in your home dir, something like
~/bin/flex
.
- Add the following lines to your
.bashrc
or equivalent, modified as appropriate to the path chosen in step 2:
export FLEX_HOME=~/bin/flex
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
Additionally, run this line in your working terminal, or open a fresh terminal to ensure the environment variable is set. 4. Clone the Weave git repository either read-only:
git clone git://github.com/IVPR/Weave.git
Or, if you are a contributor:
git clone git@github.com:IVPR/Weave.git
5. Enter the resulting Weave directory, and the subdirectory it contains named WeaveClient.
6. Edit the buildall.xml
file. Be sure to set WEAVE_DOCROOT
to some path writable by your user, and to set SDK_VERSION as appropriate for the SDK version. More information can be found in the comments of the file.
7. Run
ANT_OPTS='-XX:MaxPermSize=1024m -Xms256M -Xmx512M' ant -f buildall.xml install
- Open a new file at /etc/tomcat6/Catalina/localhost/weave.xml, ie
sudo vim /etc/tomcat7/Catalina/localhost/weave.xml
And add the following line:
<Context path="/weave" docBase="/home/user/pub/app">
Modifying docBase
as appropriate NOTE: It should match the value of WEAVE_DOCROOT.
8. Copy WeaveServices.war
from the source directory into /var/lib/tomcat7/webapps
.
9. Restart the tomcat service as appropriate for your distribution. For example, on Ubuntu/Debian:
sudo service tomcat7 restart
10. Open your browser and enter
"http://localhost:8080/weave/weave.html"
or
"http://localhost:8080/weave/AdminConsole.html"
to test.