Open ayunas opened 3 years ago
Interesting...
Not tried to use Java-Faker without Maven before, and know I appreciate Maven more.
There are two dependencies that are needed to be added if you don't use Maven (which handles it for you). You need to add "snakeyaml-1.23.jar" to your project, to solve "Exception in thread "main" java.lang.NoClassDefFoundError: org/yaml/snakeyaml/Yaml".
After which, I got "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils" Which meant I had to add apache's "commons-lang3.3.11.jar" to my project as well.
I would recommend using Maven to help with dependencies, but if not, you need to download snakeyaml.jar at a minimum, to get JavaFaker to work. Not sure why the build didn't include those jar files, but should get you going.
I was having the same issue, but i tried what @sachsgit suggested, and everything works now! Thanks!
Thanks! @sachsgit
Describe the bug
Exception in thread "main" java.lang.NoClassDefFoundError: org/yaml/snakeyaml/Yaml
To Reproduce
Expected behavior I expected a random name to be returned as a String to print out. Instead, got the NoClassDefFound errror.
Versions:
Additional context Add any other context about the problem here.