Skip to content

Instantly share code, notes, and snippets.

@dbriggsie
Last active September 24, 2018 10:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbriggsie/b8b07bcaeaf52be978defcc334430f19 to your computer and use it in GitHub Desktop.
Save dbriggsie/b8b07bcaeaf52be978defcc334430f19 to your computer and use it in GitHub Desktop.
Guide to Build & Run Tron Fullnode on Windows

Guide to Build & Run Tron Fullnode on Windows

This guide is for running a Fullnode NOT a SR or (Block Producing Node).

Getting Started

All you need is a Windows Machine that has Java Development Kit 1.8 Installed. Preferably a Windows Machine that will stay online 24/7.

Prerequisites

Open UDP ports for connection to the network

Make sure to install JDK 1.8 (JDK 1.9+ are not supported yet). You can download the JDK1.8 here. Download link is listed in the top table Java SE Development Kit 8u181 (you will have to sign up for an oracle account in order to download)

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install the JDK 1.8

Defining your Java PATH

Windows 10 and Windows 8

  • In Search, search for and then select: System (Control Panel)
  • Click the Advanced system settings link.
  • Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  • In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Installing

Firstly download Odyssey-v3.1.1 Zip from TronProtocol's GitHub. (currently latest release) Then extract it.

https://github.com/tronprotocol/java-tron/archive/Odyssey-v3.1.1.zip

Next, Open up Command Prompt (CMD) and change into the Directory for /java-tron

cd /Desktop/java-tron

Then, run the gradle build using the following

gradlew.bat build -x test

After the build is successful you can change into the build/libs directory

cd build/libs

Running your newly built Tron FullNode

Inside libs folder, in command prompt run the following

java -jar FullNode.jar

Problems running

If you notice it doesn't work, check your log file. These are located in build/libs/logs/tron.log It may say you need to delete libs/output-directory/ proceed to delete this and re-run the java -jar FullNode.jar command from inside build/libs folder in Command Prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment