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

  1. 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

Automatic build

  1. Go into MercuryTrade repository folder
  2. run build_mercury.bat (double click it)
  3. Wait for a bit and .jar and .exe files would be builded inside release_files folder

You can also run build_mercury_wit_zip.bat it will also compress MercuryTrade to release ready zip files

Building jar manually

  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

  1. move your .jar file to MercuryTrade/release_files folder
  2. run Launch4j program
  3. press "open configuration and or import" button (folder icon)
  4. select MercuryTrade/release_files/release_config.xml file
  5. press "build wrapper" button (cog icon)
  6. MercuryTrade.exe file should be generated inside MercuryTrade/release_files folder
Clone this wiki locally