0

I've a Java backend application (Traccar). I compile and start the application selecting the following configuration:

enter image description here

The I click on run to execute the program, and everything works. My question is: how can I do the same from command line? All the settings in this image, how are they translatable to some commands? If I have to do run the program from command line, how can I select the main class (org.traccar.Main), the module (-cp tracker-server.main) and so on? Thank you everybody.

1 Answers1

0

You should compile the JAR file first and then run it using something like this:

java -jar tracker-server.jar conf/traccar.xml
Anton Tananaev
  • 2,458
  • 1
  • 25
  • 48