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

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory #38

Open
v3ree opened this issue Mar 3, 2017 · 1 comment
Assignees

Comments

@v3ree
Copy link

v3ree commented Mar 3, 2017

With Java 9 installed I get this error when I try to start the program:

java -jar ./androidscreencast-0.0.10s-SNAPSHOT.jar

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at com.github.xsavikx.androidscreencast.Main.<clinit>(Main.java:12)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-internal/BuiltinClassLoader.java:366)
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-internal/ClassLoaders.java:184)
	at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
@xSAVIKx
Copy link
Owner

xSAVIKx commented Mar 3, 2017

Hello @vlad3-3-3.

I do believe that problem is in jar you're going to run.

You should run jar with -executable suffix.

Please read building and running from sources section

@xSAVIKx xSAVIKx self-assigned this Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants