Skip to content

Commit 6d8023f

Browse files
committed
doc(jdk):use JDK 1.8 and JDK 17
1 parent 5a46577 commit 6d8023f

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ TRON enables large-scale development and engagement. With over 2000 transactions
6161

6262
Building java-tron requires `git` package
6363

64-
## operating systems
64+
## Operating systems
6565
Make sure you operate on `Linux` or `MacOS` operating systems, other operating systems are not supported yet.
6666

6767
## Architecture
@@ -89,7 +89,7 @@ $ ./gradlew clean build -x test
8989

9090
# Running java-tron
9191

92-
## operating systems
92+
## Operating systems
9393
Make sure you operate on `Linux` or `MacOS` operating systems, other operating systems are not supported yet.
9494

9595
## Architecture
@@ -123,7 +123,7 @@ Recommended:
123123

124124
Full node has full historical data, it is the entry point into the TRON network, it can be used by other processes as a gateway into the TRON network via HTTP and GRPC endpoints. You can interact with the TRON network through full node:transfer assets, deploy contracts, interact with contracts and so on. `-c` parameter specifies a configuration file to run a full node:
125125

126-
### x86_64 JDK8
126+
### x86_64 JDK 1.8
127127
```bash
128128
$ nohup java -Xms9G -Xmx9G -XX:ReservedCodeCacheSize=256m \
129129
-XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m \
@@ -135,7 +135,7 @@ $ nohup java -Xms9G -Xmx9G -XX:ReservedCodeCacheSize=256m \
135135
-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 \
136136
-jar FullNode.jar -c main_net_config.conf >> start.log 2>&1 &
137137
```
138-
### ARM64 JDK17
138+
### ARM64 JDK 17
139139
```bash
140140
$ nohup java -Xms9G -Xmx9G -XX:+UseZGC \
141141
-Xlog:gc*:file=gc.log:time,uptime,level,tags:filecount=50,filesize=100M \
@@ -163,7 +163,7 @@ Fill in the private key of a super representative address into the `localwitness
163163

164164
then run the following command to start the node:
165165

166-
### x86_64 JDK8
166+
### x86_64 JDK 1.8
167167
```bash
168168
$ nohup java -Xms9G -Xmx9G -XX:ReservedCodeCacheSize=256m \
169169
-XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m \
@@ -175,7 +175,7 @@ $ nohup java -Xms9G -Xmx9G -XX:ReservedCodeCacheSize=256m \
175175
-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 \
176176
-jar FullNode.jar --witness -c main_net_config.conf >> start.log 2>&1 &
177177
```
178-
### ARM64 JDK17
178+
### ARM64 JDK 17
179179
```bash
180180
$ nohup java -Xms9G -Xmx9G -XX:+UseZGC \
181181
-Xlog:gc*:file=gc.log:time,uptime,level,tags:filecount=50,filesize=100M \

start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,21 +368,21 @@ runService() {
368368
if [[ "$arch" == "x86_64" || "$arch" == "amd64" ]]; then
369369
echo "Architecture: x86_64/amd64"
370370
if [[ $java_version =~ '1.8' ]]; then
371-
echo 'Using required JDK8 for x86_64/amd64 architecture'
371+
echo 'Using required JDK 1.8 for x86_64/amd64 architecture'
372372
nohup $JAVACMD -Xms$JVM_MS -Xmx$JVM_MX -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -Xloggc:./gc.log \
373373
-XX:+PrintGCDateStamps -XX:+CMSParallelRemarkEnabled -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing \
374374
-XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m \
375375
-XX:MaxDirectMemorySize=$MAX_DIRECT_MEMORY -XX:+HeapDumpOnOutOfMemoryError \
376376
-XX:NewRatio=2 -jar \
377377
$JAR_NAME $FULL_START_OPT >>start.log 2>&1 &
378378
else
379-
echo "Error: x86_64/amd64 architecture requires JDK8. Current version: $java_version"
379+
echo "Error: x86_64/amd64 architecture requires JDK 1.8. Current version: $java_version"
380380
exit 1
381381
fi
382382
elif [[ "$arch" == "aarch64" || "$arch" == "arm64" ]]; then
383383
echo "Architecture: ARM64"
384384
if [[ $java_version =~ '17' ]]; then
385-
echo 'Using required JDK17 for ARM architecture'
385+
echo 'Using required JDK 17 for ARM architecture'
386386
nohup $JAVACMD -Xms$JVM_MS -Xmx$JVM_MX \
387387
-XX:+UseZGC \
388388
-Xlog:gc*:file=gc.log:time,uptime,level,tags:filecount=50,filesize=100M \
@@ -391,7 +391,7 @@ runService() {
391391
-XX:MaxDirectMemorySize=$MAX_DIRECT_MEMORY -XX:+HeapDumpOnOutOfMemoryError \
392392
-jar $JAR_NAME $FULL_START_OPT >>start.log 2>&1 &
393393
else
394-
echo "Error: ARM architecture requires JDK17. Current version: $java_version"
394+
echo "Error: ARM architecture requires JDK 17. Current version: $java_version"
395395
exit 1
396396
fi
397397
else

0 commit comments

Comments
 (0)