Hi I've been dealing with this for a bit now and I haven't been able to fix it.
So I have a simple Java application which uses the Google Calendar API to get events from it.
When I run it on the IDE(IntelliJ) it works with no errors but when I build and run the the JAR from the command line I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/google/api/client/extensions/java6/auth/oauth2/VerificationCodeReceiver
at info.cantu.smartmirror.Main.main(Main.java:44)
Caused by: java.lang.ClassNotFoundException:
com.google.api.client.extensions.java6.auth.oauth2.VerificationCodeReceiver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
I imported the required libraries using maven. I think I may be building the jar wrong.
Here's my MANIFEST.MF:
Manifest-Version: 1.0
Main-Class: info.cantu.smartmirror.Main
Here is what my Artifacts panel looks like:
Any ideas?