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

Class not found exception #9

Closed
mayankrathi2711 opened this issue Jun 16, 2017 · 2 comments
Closed

Class not found exception #9

mayankrathi2711 opened this issue Jun 16, 2017 · 2 comments

Comments

@mayankrathi2711
Copy link

Hello All,

I am getting below error after generating jar file using maven. How to resolve this error?

Exception in thread "main" java.lang.ClassNotFoundException: com.homeadvisor.kafdrop.KafDrop
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:178)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:104)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:61)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.homeadvisor.kafdrop.KafDrop
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:62)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:104)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:61)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: java.lang.ClassNotFoundException: com.homeadvisor.kafdrop.KafDrop
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:178)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
... 3 more

@michael-pratt
Copy link
Contributor

How are you running Kafdrop? Were there any errors during the build? This should be all you need (using latest master branch):

mvn clean install
java -jar target/kafdrop-1.2.2-SNAPSHOT.jar --zookeeper.connect=<ZK_HOST:ZK_PORT>

@mayankrathi2711
Copy link
Author

Thanks for quick turnaround. I ran build again and it's working fine now.

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

2 participants