Error message for why org.bytedeco.javacpp.cachedir could not be created
#603 opened on Sep 16, 2022
Repository metrics
- Stars
- (4,279 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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