Error while invoking Chord from a Script

30 views
Skip to first unread message

Suvam Mukherjee

unread,
Sep 9, 2015, 7:12:03 AM9/9/15
to chord-discuss
Hi,

I am having a strange issue. Chord runs fine when I invoke the following command from the command line:

>> java -cp chord-src-2.1/chord.jar -Dchord.work.dir=/Users/suvam/workspace -Dchord.run.analyses=datarace-java chord.project.Boot

But when I try to automate it, and include the command in the script, as follows:

echo -n "Enter working dir: "
read $workDir
java -cp chord-src-2.1/chord.jar -Dchord.work.dir=$workDir -Dchord.run.analyses=datarace-java chord.project.Boot
echo "Script resumed"

I am getting the error: Error: Could not find or load main class chord.project.Boot

Incidentally, if I give the full working directory path in the script and then run, no errors are thrown.
I am using Chord on Mac OS X 10.10.5 on Java 7.

Has anyone else faced this issue? Can anyone suggest a fix?

Sincerely,
Suvam.

Reply all
Reply to author
Forward
0 new messages