Skip to content

How to compile and run MercuryTrade

Morph21 edited this page Apr 11, 2022 · 4 revisions

First you need to download and install few things

  1. Download MercuryTrade repository
  2. Download and Install java jdk (it needs to be in version 8 or higher)
  3. Download and Install maven (this is build tool for java) on windows you just need to download zip, unpack it and add maven/bin folder to your Path variable

Additional step if you want to build mercury trade up to .exe file 4. Download and install "Launch4j" (it's java application which will make .exe file from .jar file)

now you should be able to call from cmd:

  1. mvn -version
  2. java -version

Building jar is simple, here are required steps to do so:

  1. open cmd
  2. navigate to main folder of MercuryTrade repository it should have folders app-core, app-local-updater, etc. inside
  3. type command "mvn clean package" and press enter
  4. build will take a while, when it's done you should get MercuryTrade.jar folder inside "app/target" folders
  5. To run .jar file just type in cmd "java -jar MercuryTrade.jar" while inside "app/target" folder.

Additional step if you want to build mercury trade up to .exe file 6. move your .jar file to MercuryTrade/release_files folder 7. run Launch4j program 8. press "open configuration and or import" button (folder icon) 9. select MercuryTrade/release_files/release_config.xml file 10. press "build wrapper" button (cog icon) 11. MercuryTrade.exe file should be generated inside MercuryTrade/release_files folder

Clone this wiki locally