Error: Unable to initialize main class org.traccar.Main

gps lite4 years ago

Hello.

after compiling the downloaded zip file from github, when I use the command:

java -jar tracker-server.jar target / traccar.xml

I get this error back:

Error: Unable to initialize main class org.traccar.Main
Caused by: java.lang.NoClassDefFoundError: com / google / inject / Injector

I do not know what I'm doing wrong

Thanks for the help

I add screenshot
https://ibb.co/cNBXN7M

Anton Tananaev4 years ago

Try different Java version. Also, make sure you have libs folder with all correct dependencies.

gps lite4 years ago

I can edit:

Linux x64 traccar-linux-64-4.8.zip

to enable features like screenshot (https://ibb.co/GkKhCcC) or do I need to edit the github file?

Anton Tananaev4 years ago

Either one would work. Both have the same JavaScript source code.

gps lite4 years ago

What file should I modify to obtain these functions?

Should I compile the application after making the modifications?