This guide is for running a Fullnode NOT a SR or (Block Producing Node).
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.
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
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.
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
Inside libs folder, in command prompt run the following
java -jar FullNode.jar
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