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 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:
- mvn -version
- java -version
Building jar is simple, here are required steps to do so:
- 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 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