I am getting ClassNotFoundException and NoClassDefFoundError exceptions when I attempt to run my application using a maven defined dependency.
I added my maven dependency for the jar in question to my pom.xml file with the following declaration:
<dependency>
<groupId>upload</groupId>
<artifactId>upload</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}\lib\upload.jar</systemPath>
</dependency>
This added the relevant JAR file to my Maven Dependencies folder in Eclipse. I can access the classes in code but I get the mentioned exceptions once I run the application.
The jar is referenced in my Java build path under Maven dependencies:
when i am running the project am getting following exception
java.lang.NoClassDefFoundError: