You are very close! I think you want the following:
java -Xmx512m -cp oscar3-a5/oscar3-a5.jar uk.ac.cam.ch.wwmm.oscar3.Oscar3 stringToString test
Alternatively if your current working directory (pwd
) is the same directory that oscar3-a5.jar
resides in, then:
java -Xmx512m -cp ./oscar3-a5.jar uk.ac.cam.ch.wwmm.oscar3.Oscar3 stringToString test
(I've assumed you're running on *nix - if you're running on Windows replace the /
with \
)