I was following instructions here https://github.com/cs50/spl
- apt-get install -y build-essential git openjdk-7-jdk
- git clone [email protected]:cs50/spl.git
- cd spl
- make
- sudo make install
make
gcc -o build/tests/TestStanfordCSLib build/obj/TestStanfordCSLib.o - Lbuild/lib -lcs -lm
javac -d build/classes -classpath java/lib/acm.jar -sourcepath java/src \
java/src/stanford/spl/JavaBackEnd.java
jar cf build/lib/spl.jar . . .
sudo make install
javac -d build/classes -classpath java/lib/acm.jar -sourcepath java/src \
java/src/stanford/spl/JavaBackEnd.java
/bin/bash: jar: command not found
Makefile:308: recipe for target 'spl.jar' failed
make: *** [spl.jar] Error 127
Does someone know how to fix it?
Any advice will be helpful ;)
jar
command worked in themake
step, but not in themake install
step? What happens when you runwhich jar
?