-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ClassNotFoundException #475
Comments
Third party library is missing... |
which version of java must be used , which library might be missing ? |
Java version 6+. As for libraries, it's a maven project, so they will be downloaded automatically if you use maven or IDE with a maven plugin. |
hi anton, thanks a lot |
You can't attach files to GitHub emails, did you change pom file? I'm using NetBeans, not sure about IDEA.. |
it work in intellij Idea ,but when i package it as a jar file and run it in command line in windows it raise throw this exception, |
You don't have third party libraries on your classpath, that's why you get an exception. Probably you forgot to copy them or something. As for config file, you need to pass it as a command line argument: java -jar tracker-server.jar "C:\traccar.cfg" |
Hi Tananaev I used this command java -jar tracker-server.jar " traccar.cfg" to run the server . But i am getting an exception called Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger at org.traccar.Main.<clinit>(Main.java:25) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more |
@mah5353, have you read this thread? It already has an answer. |
hi there
when i create a jar file from traccar server and run it using this command:
java -jar traccarserver.jar
i downloaded zip file source code from github
i encounter this error:
D:\projects\traccar\traccar-master\out\artifacts>java -jar traccar.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/boots
trap/Bootstrap
at org.traccar.Main.main(Main.java:26)
Caused by: java.lang.ClassNotFoundException: org.jboss.netty.bootstrap.Bootstrap
best regards
The text was updated successfully, but these errors were encountered: