Documentation | Guides | News
Contract Executor is app for deploy and execute methods of smart-contract
Maven - Is a tool that can be used for building and managing any Java-based project. It is a command-line tool for building Java (and other) programs developed by Apache.
It's up to you to set up your prerequisites and environment to run Maven on Windows. Therefore, the major prerequisite needed is Java SDK installation because Maven is written in Java and primarily it is used to build Java programs.
The installation of Apache Maven implies extracting the archive and adding the bin folder with the mvn command to the PATH.
Detailed steps are:
- Download and install JDK and Add ‘JAVA_HOME’ Environment Variable. After installing Java you must add JAVA_HOME variable to JDK install folder. In addition, ‘java/bin’ directory must be included in ‘PATH’ variable.
- Download and install Maven and set the ‘M2_HOME’ and ‘MAVEN_HOME’ variables to maven installation folder. You can download Maven here.
- Afterward, ‘maven/bin’ directory must be included in ‘PATH’ variable also. To run maven from command prompt, this is necessary so update the PATH variable with 'maven/bin' directory.
- Check the installation by typing the following command in the console:
mvn -version
- Install Git and clone the thrift-api-client repository from GitHub: https://github.com/CREDITSCOM/thrift-api-client
- Change to the directory by using command:_ cd_
- Change the working brach to dev: git checkout dev
- Once on the directory write the following command in the prompt to build compilation from sources files:
mvn clean install
- Now, repeat the process for smart-contract-api repository. Clone it from the repository: https://github.com/CREDITSCOM/smart-contract-api
- Change the working brach to dev: git checkout dev
- Change to the directory by using command:_ cd. _Then build compilation from sources by using the command:
mvn clean install
- Finally clone contract-executor repository from: https://github.com/CREDITSCOM/contract-executor
- Change the working brach to dev: git checkout dev
- Change to the contract-executor directory and build it by using:
mvn clean install
. If all the steps were performed properly and secuently, errors won’t be.
git clone https://github.com/CREDITSCOM/thrift-api-client.git
cd thrift-api-client
git checkout dev
call mvn clean install
cd..
git clone https://github.com/CREDITSCOM/smart-contract-api.git
cd smart-contract-api
git checkout dev
call mvn clean install
cd..
git clone https://github.com/CREDITSCOM/contract-executor.git
cd contract-executor
git checkout dev
cd sc-api-support
call mvn clean install
cd..
cd contract-executor
call mvn clean install
cd..
cd..
rem Warning!!!
rem get these files with the same suffix in the target folders
rem example
rem sc-api-support-v0.8.4-b35.jar
rem contract-executor-v0.8.4-b35.jar
rem rename them to sc-api-support.jar and contract-executor.jar -> node directory
rem DO NOT FORGET to change next lines in [api] department of node config.ini file to:
rem executor_commit_min=1518
rem executor_commit_max=1518
git clone https://github.com/CREDITSCOM/thrift-api-client.git
cd thrift-api-client
git checkout dev
mvn clean install
cd ..
git clone https://github.com/CREDITSCOM/smart-contract-api.git
cd smart-contract-api
git checkout dev
mvn clean install
cd ..
git clone https://github.com/CREDITSCOM/contract-executor.git
cd contract-executor
git checkout dev
cd sc-api-support
mvn clean install
cd ..
cd contract-executor
mvn clean install
cd ..
cd ..
# Warning!!!
# get these files with the same suffix in the target folders
# example
# sc-api-support-v0.8.4-b35.jar
# contract-executor-v0.8.4-b35.jar
# rename them to sc-api-support.jar and contract-executor.jar -> node directory
# DO NOT FORGET to change next lines in [api] department of node config.ini file to:
# executor_commit_min=1518
# executor_commit_max=1518