The cache dir can be set via the system property org.bytedeco.javacpp.cachedir
The Loader.getCacheDir() method will try this path, plus some others, and if creating all of these fails, it throws the error
IOException("Could not create the cache: Set the \"org.bytedeco.javacpp.cachedir\" system property.");
If org.bytedeco.javacpp.cachedir has been set, but could not be created, then this error message is misleading, as it suggests the system property wasn't set properly
If org.bytedeco.javacpp.cachedir has been set, then it should be checked on its own and an error thrown explaining why this specific path could not be used
The cache dir can be set via the system property
org.bytedeco.javacpp.cachedir
TheLoader.getCacheDir()
method will try this path, plus some others, and if creating all of these fails, it throws the errorIOException("Could not create the cache: Set the \"org.bytedeco.javacpp.cachedir\" system property.");
If
org.bytedeco.javacpp.cachedir
has been set, but could not be created, then this error message is misleading, as it suggests the system property wasn't set properlyIf
org.bytedeco.javacpp.cachedir
has been set, then it should be checked on its own and an error thrown explaining why this specific path could not be used