Skip to content

Development Environment Setup Windows

tokn136 edited this page Dec 6, 2014 · 46 revisions

Required Software

Install Java JDK 7

  • Download from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  • Determine the Java home directory path (under Windows it is usually similar to C:\Program Files\Java\jdk1.7.0_67).
  • Add JAVA_HOME to the environment variables with the value: C:\Program Files\Java\jdk1.7.0_67.
  • Update/create Path environment variable: prepend the value %JAVA_HOME%\bin to make Java available in the command line.
  • Open a new command prompt (Winkey + R then type cmd) and run java -version to verify that it is correctly installed.

Install Maven

  • Download distribution from http://maven.apache.org/download.cgi and unzip the archive (assuming C:\Program Files\Apache Software Foundation\apache-maven-3.2.3)
  • Add M2_HOME to the environment variables with the value: C:\Program Files\Apache Software Foundation\apache-maven-3.2.3.
  • Add M2 to the environment variables with the value: %M2_HOME%\bin.
  • Optional: Add MAVEN_OPTS to the environment variables with the value: -Xms256m -Xmx512m.
  • Update/create Path environment variable: prepend the value %M2% to make Maven available in the command line.
  • Open a new command prompt (Winkey + R then type cmd) and run mvn --version to verify that it is correctly installed.

Setup for Development

  1. Download Liferay 6.2 bundled with Tomcat (Community Edition) from http://www.liferay.com/downloads/liferay-portal/available-releases

  2. Unzip downloaded bundle, let's call the target folder XCOLAB_BUNDLES_DIR (assuming E:\dev\XCOLAB\XCOLAB_BUNDLES_DIR)

  3. Clone XCoLab GitHub repository: https://github.com/CCI-MIT/XCoLab. Let's call the directory to which the repository was downloaded XCOLAB_SRC ( assuming E:\dev\XCOLAB\XCOLAB_SRC )

  4. Add XCOLAB_SRC to the environment variables with the value: E:/dev/XCOLAB/XCOLAB_SRC. Use / instead of \ in your Path!

  5. Add XCOLAB_BUNDLES_DIR to the environment variables with the value: E:/dev/XCOLAB/XCOLAB_BUNDLES_DIR. Use / instead of \ in your Path!

  6. Go to XCOLAB_BUNDLES_DIR, check tomcat version (assuming 7.0.42) and add TOMCAT_VERSION to the environment variables with the value: 7.0.42.

Clone this wiki locally