Modular Deployment

How to deploy java-tron after modularization

After modularization, java-tron is launched via shell script instead of typing command:

java -jar FullNode.jar

java -jar FullNode.jar still works, but will be deprecated in future.


git clone [email protected]:tronprotocol/java-tron.git


Change to project directory and run:

./gradlew build will be generated in java-tron/build/distributions after compilation.



cd java-tron/build/distributions
unzip -o

After unzip, two directories will be generated in java-tron: bin and lib, shell scripts are located in bin, jars are located in lib.


Use the corresponding script to start java-tron according to the OS type, use *.bat on Windows, Linux demo is as below:

# default

# using config file, there are some demo configs in java-tron/framework/build/resources
java-tron-1.0.0/bin/FullNode -c config.conf

# when startup with SR mode,add parameter: -w
java-tron-1.0.0/bin/FullNode -c config.conf -w

JVM configuration

JVM options can also be specified, located in bin/java-tron.vmoptions:

# demo