Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

运行kafka-log-appender出错 #1

Open
unclebob2013 opened this issue Nov 30, 2016 · 1 comment
Open

运行kafka-log-appender出错 #1

unclebob2013 opened this issue Nov 30, 2016 · 1 comment

Comments

@unclebob2013
Copy link

kafka-log-appender git:(master) ✗ java -cp target/kafka-log-appender-1.0-SNAPSHOT.jar com.log.kafka.RogueApplication
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at com.log.kafka.RogueApplication.<clinit>(RogueApplication.java:11)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
@jiekechoo
Copy link
Owner

这是一个基础性java问题,你单独运行jar包,需要把相关依赖打包进去或者单独引用依赖包。

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

No branches or pull requests

2 participants