Carleslc / Simple-YAML

This Java API provides an easy-to-use way to store data and provide configurations using the YAML format.
https://carleslc.me/Simple-YAML
GNU General Public License v3.0
130 stars 38 forks source link

.save() error #3

Closed Mario-Greiner closed 6 years ago

Mario-Greiner commented 6 years ago

When i call the yamlFile.save(); method i always get this error:

java.lang.NoClassDefFoundError: com/google/common/io/Files at org.simpleyaml.configuration.file.FileConfiguration.save(FileConfiguration.java:100) at org.simpleyaml.configuration.file.YamlFile.save(YamlFile.java:78)

Carleslc commented 6 years ago

Thank you for your issue, @Mario-Greiner.

The error says that class Files cannot be found from Google's Guava, which is a dependency of Simple-YAML. Seems these dependencies were not well packed.

I've updated the dependency for Maven in the README, check it out.

In the case you're not using Maven I've uploaded a new JAR that packs the dependencies correctly.

Hope this helps!

Mario-Greiner commented 6 years ago

I dont use Maven. Please upload the new JAR Thanks

Carleslc commented 6 years ago

It's already uploaded as I said in the message above.