Error message for why org.bytedeco.javacpp.cachedir could not be created
#603 ouverte le 16 sept. 2022
Métriques du dépôt
- Stars
- (4 279 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
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