Home > Mobile >  How to manage Intellij IDEA configuration?
How to manage Intellij IDEA configuration?

Time:04-12

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.

CodePudding user response:

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

java -jar tracker-server.jar conf/traccar.xml
  • Related