bytedeco/javacpp

Error message for why org.bytedeco.javacpp.cachedir could not be created

Open

#603 ouverte le 16 sept. 2022

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Java (620 forks)batch import
enhancementhelp wanted

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

Guide contributeur