Skip to content

Linux start script is missing quotes to terminate spaces in file names

I am referring to the first build of the release job in Jenkins (http://build.se.informatik.uni-kiel.de/jenkins/job/Kieker%20Trace%20Diagnosis-release/1/). When using the Linux version of the build (Kieker Trace Diagnosis-release-1.0-linux.tgz) and trying to start it, I get an error message that is raised in line 68:

./bin/start 
./bin/start: line 68: Trace: command not found
Error: Could not find or load main class kieker.diagnosis.Main

In my tests it sufficed if the the part after the CLASSPATH variable was put in quotes like the following:

CLASSPATH="$APP_HOME/lib/Kieker Trace Diagnosis-release-1.0.jar:$APP_HOME/lib/teetime-1.1.2.jar:$APP_HOME/lib/teetime-stages-1.1.2.jar:$APP_HOME/lib/kieker-1.11.jar:$APP_HOME/lib/slf4j-api-1.7.12.jar:$APP_HOME/lib/logback-classic-1.1.3.jar:$APP_HOME/lib/guava-18.0.jar:$APP_HOME/lib/JCTools-7239659ba0.jar:$APP_HOME/lib/hppc-0.6.1.jar:$APP_HOME/lib/logback-core-1.1.3.jar"

(in the original file the quotes at the beginning and end were not present)

After this fix it seems to start up without any errors.