Could not find file "spl.jar" for Stanford C ++ library

I want to complete the CS106b / CS106x course at Stanford, but I have problems running C ++, an example project in Qt. While I can build the project, but when I try to start it, the following error message is always displayed:

***
*** STANFORD C++ LIBRARY ERROR:
*** Unable to find the file 'spl.jar' for the Stanford
*** C++ library Java back-end process.
*** Please make sure that spl.jar is properly attached to your project.
*** If you are trying to run a stand-alone executable, place spl.jar
*** in the same directory as your executable, or set the system
*** environment variable SPL_HOME to a directory path containing spl.jar.
***
*** (I looked for it in the following directory:)
*** /
***

In fact, the file "spl.jar" is in the folder. As you can see in the screenshot.

enter image description here

Therefore, I assume that my computer simply cannot find it or also does not have the correct path to it, at least as I understand the last three lines in the error message ?! (only "/")

How to set the path? Does it have something that Java might have installed incorrectly? Actually, I had to install the latest version of Java 8 JDK.

Do you have any other ideas how to solve this?

+4
1

, . , SPL_HOME , .

, :

launchctl getenv SPL_HOME

:

launchctl setenv SPL_HOME 'path'

'path' , spl.jar. , , : https://www.schrodinger.com/kb/1842

, - .

: , Qt / , + .

+3

Source: https://habr.com/ru/post/1665819/


All Articles