Install Open Trip Planner 0.18.x under Debian 7.6

First, install java 1.8.0/8.0 under Debian 7. (If using older version of Open Trip Planner like 0.11.x, you will need Java 1.7/7.0 instead)

Next, install maven and git:

apt-get update
apt-get install git
apt-get install maven

Install Open Trip Planner 0.18:

cd /opt
git clone
cd OpenTripPlanner
git checkout 0.18.x

Increase maven memory limits and build application:

export MAVEN_OPTS="-Xmx2000m"
mvn clean package

If building seems too slow, try to skip tests:

mvn clean package –DskipTests

Next, download sample GTFS and map data and build Graph object:

mkdir -p /var/otp/graphs/sample && cd /var/otp/graphs/sample
wget "" -O
java -Xmx768m -jar target/otp-0.18.0.jar --build /var/otp/graphs/sample

Start server:

java -Xmx768m -jar target/otp-0.18.0.jar --router sample --graphs /var/otp/graphs/ --server --port 8080

Open your your trip planner with web browser: http://localhost:8080