Skip to content

Command line options

Stan Reshetnyk edited this page Mar 30, 2017 · 10 revisions

Network selection

Environment Run ...
Live gradlew runMain Start server connecting to Live network
Ropsten gradlew runRopsten Start server connecting to Ropsten network
Test gradlew runTest Start server connecting to Test network
Classic gradlew runClassic Start server connecting to Ethereum Classic network
Private gradlew runPrivate Start server, no network connection, miner could be running by invoking miner_start in Terminal page

Available options

-Dserver.port=8080 - change http port for web interface and JSON-RCP;

-Dpeer.listen.port=30303 - change peer port for incoming connections;

-Ddatabase.dir="PATH_TO/ethereumj/database" - path to database;

-Dethereumj.conf.file=PATH_TO/ethereum.conf - path to ethereumj configuration file;

-DgenesisFile=PATH_TO/genesis.json - path to genesis file;

HTTPS related options

-Dserver.ssl.key-store=keystore.p12 - path to certificate

-Dserver.ssl.key-store-password=123qwe - password of certificate

-Dserver.ssl.keyStoreType=PKCS12

-Dserver.ssl.keyAlias=tomcat - name of certificate inside keystore container, if there are many

Minor options

-Djsonrpc.web3jCompliantError=true|false - change JSON-RPC error format. true is for compatibility with web3j

-Dlogs.keepStdOut=true|false - true to enable stdout output for logs


Any option from ethereumj.conf can be set from command line.