Solved
Mass Uploading files to the DAM
In regards to the following article:
When ever I'm trying to execute the .jar file it gives me the following error:
Exception in thread "main" java.lang. NoClassDefFoundError: org/apache/http/entity/mime/ content/ContentBody
at java.lang.Class. getDeclaredMethods0(Native Method)
at java.lang.Class. privateGetDeclaredMethods( Class.java:2615)
at java.lang.Class.getMethod0( Class.java:2856)
at java.lang.Class.getMethod( Class.java:1668)
at sun.launcher.LauncherHelper. getMainMethod(LauncherHelper. java:494)
at sun.launcher.LauncherHelper. checkAndLoadMain( LauncherHelper.java:486)
Caused by: java.lang. ClassNotFoundException: org.apache.http.entity.mime. content.ContentBody
at java.net.URLClassLoader$1.run( URLClassLoader.java:366)
at java.net.URLClassLoader$1.run( URLClassLoader.java:355)
at java.security. AccessController.doPrivileged( Native Method)
at java.net.URLClassLoader. findClass(URLClassLoader.java: 354)
at java.lang.ClassLoader. loadClass(ClassLoader.java: 425)
at sun.misc.Launcher$ AppClassLoader.loadClass( Launcher.java:308)
at java.lang.ClassLoader. loadClass(ClassLoader.java: 358)
... 6 more
I'm creating this in eclipse not intelliJ, so I made a parent maven project then made a maven module with the source code provided in the article
I've also added the dependencies to the module pom.xml (tried adding dependencies to parent project pom.xml as well)
I created the jar file by doing a mvn clean install on the parent project. Not sure what I'm doing wrong here?
Is there a different way to package a .jar file using a maven project/module combo?
Thanks