Add awt headless flag
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / run.sh
index b34e8f773fbb324990bb19c8428fdde49d696189..3a29f63b81a5ab0d442fae2b6e0c75003d6c2e68 100755 (executable)
@@ -207,6 +207,7 @@ if [ "${startdaemon}" -eq 1 ]; then
         -Dosgi.configuration.area=${datadir}/configuration \
         -Dosgi.frameworkClassPath=${FWCLASSPATH} \
         -Dosgi.framework=file:${basedir}/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar \
+        -Djava.awt.headless=true \
         -classpath ${CLASSPATH} \
         org.eclipse.equinox.launcher.Main \
         -console ${daemonport} \
@@ -224,6 +225,7 @@ elif [ "${consolestart}" -eq 1 ]; then
         -Dosgi.configuration.area=${datadir}/configuration \
         -Dosgi.frameworkClassPath=${FWCLASSPATH} \
         -Dosgi.framework=file:${basedir}/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar \
+        -Djava.awt.headless=true \
         -classpath ${CLASSPATH} \
         org.eclipse.equinox.launcher.Main \
         -console \