简体   繁体   中英

Exception in thread “main” - NoClassDefFoundError

After using java -jar tracker-server.jar "configuration.xml"

I got:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/bootstrap/Bootstrap
            at org.traccar.Main.main(Main.java:26)
    Caused by: java.lang.ClassNotFoundException: org.jboss.netty.bootstrap.Bootstrap
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
            ... 1 more

I found only its some about third party library. But I'm not friendly with Java.

The ClassNotFoundException is caused by there soem jar file missing from the classpath. Search for the jar what includes the missing class and make it available for the enviroment.

See this thread: java.lang.NoClassDefFoundError: org.jboss.netty.bootstrap.ClientBootstrap

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM