forked from Exslims/MercuryTrade
-
-
Notifications
You must be signed in to change notification settings - Fork 24
How to compile and run MercuryTrade
Morph21 edited this page Apr 11, 2022
·
4 revisions
First you need to download and install few things
- Download MercuryTrade repository
- Download and Install java jdk (it needs to be in version 8 or higher)
- 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
- 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:
- mvn -version
- java -version
Automatic build
- Go into MercuryTrade repository folder
- run build_mercury.bat (double click it)
- 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
- open cmd
- navigate to main folder of MercuryTrade repository it should have folders app-core, app-local-updater, etc. inside
- type command "mvn clean package" and press enter
- build will take a while, when it's done you should get MercuryTrade.jar folder inside "app/target" folders
- 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
- move your .jar file to MercuryTrade/release_files folder
- run Launch4j program
- press "open configuration and or import" button (folder icon)
- select MercuryTrade/release_files/release_config.xml file
- press "build wrapper" button (cog icon)
- MercuryTrade.exe file should be generated inside MercuryTrade/release_files folder