Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange Trouble (not an issue but i can't work with your wonderful API) #905

Closed
davideserra opened this issue Jul 23, 2023 · 2 comments
Closed

Comments

@davideserra
Copy link

Hi,
First of all my compliment for your job: really great!!

I'm making a sub rover with raspberry PI P4 64 bit and I really need to implement a cam system to drive it and watch where it is. Unfortunately I find e problem using slog4j because every time I try (in my software) Webcam webcam = Webcam.getDefault() I get a very strange exception don't have anything to do with your software but prevent me to go ahed:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:112)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:105)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221)
at com.github.sarxos.webcam.Webcam.(Webcam.java:101)

Have you notice of something like that? I imported on my netbeans project all available library on the net so far but I didn't solve the issue.

Thanks so much in advance and best regards,
Davide

@C-Dykstra
Copy link

I get a very similar error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at com.github.sarxos.webcam.Webcam.(Webcam.java:101)
at Tester.main(Tester.java:17)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 2 more

@alexmao86
Copy link
Collaborator

You project is not mananged by maven, so the slf4j and dedefault logback logger IMPL are missing, please copy coresponding jars to your classpath. ti should work out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants