Answer the question
In order to leave comments, you need to log in
How to fix error: Exception in thread "main" java.lang.NoClassDefFoundError: com/github/sarxos/v4l4j/V4L4J?
I want to get an image from the camera. I work with Rasberry Pi. But the exception crashes: Exception in thread "main" java.lang.NoClassDefFoundError: com/github/sarxos/v4l4j/V4L4J
The code is taken from the example
Answer the question
In order to leave comments, you need to log in
It was on Githab 5 years ago :)
The very message that to execute java cannot find and connect the required class, you need to add ready-made jars to the CLASSPATH execution path or add it to the assembly as an artifact manually.
Rewrite the JAR file with missing classes to .
Hands add to your pom.xml file at the root of the project:<PROJECT_ROOT_FOLDER>/lib
<dependency>
<groupId>webcam-capture-driver-v4l4j</groupId>
<artifactId>webcam-capture-driver-v4l4j</artifactId>
<version>0.3.11-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${basedir}/lib/yourJar.jar</systemPath>
</dependency>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question