I'm trying to write very simple app using Intellij Idea. I've put snakeyaml in folder lib created by me and imported it into my class. When I run i got error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/yaml/snakeyaml/Yaml
at ConfigStore.readConfig(ConfigStore.java:22)
at ConfigStore.<init>(ConfigStore.java:12)
at Main.main(Main.java:9)
Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.Yaml
I'm not using maven or anything like that. I used other libs (for example SQLite) in this project and had no problems. What am I doing wrong?
[Update] I managed to make it work but to achieve that I had to build everything from scratch this time using maven. That's not what was my original idea so this is more workaround than solution.