Skip to main content
edited title
Link

How to install SPL libraries on ubuntu 16.04?

Source Link

How to install SPL libraries on ubuntu 16.04?

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 ;)