mangstadt / ez-vcard

A vCard parser library for Java
Other
398 stars 92 forks source link

com.github.mangstadt class not found. Could it've been an error I made while building? #101

Closed IsDisDaPizza closed 4 years ago

IsDisDaPizza commented 4 years ago

In a nutshell: After painstakingly attempting to build the library (I'm a beginner programmer) for a week, it finally built without errors but when I try to use it, I get a ClassNotFoundException for com.github.mangstadt.vinnie.io.VObjectDataListener. What did I do wrong?

mangstadt commented 4 years ago

The class in question is part of a dependency of ez-vcard. You're probably not including the dependency's JAR file in the classpath when you run your program.

You're not using Maven to build the library?

IsDisDaPizza commented 4 years ago

I did use maven. Maven made 3 JAR files (Here's a picture of the JAR files maven generated, all of which i added to the path). I also made sure the link was added in the dependencies inside the pom.xml file.

mangstadt commented 4 years ago

Maven stores the dependencies it downloads in a folder called ".m2", located at the root of your home directory. You'll find the JAR for the vinnie dependency in there.

If you need more help, you might want to check out the Apache Maven homepage and have a look at their documentation.

IsDisDaPizza commented 4 years ago

Boy am I glad my computer is stuck showing hidden folders. Thanks!