Sfoglia il codice sorgente

修复本地 Tomcat 启动 Java 版本

yzw 4 mesi fa
parent
commit
ed73b68dbf
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      local-run/bin/start-full-local.sh

+ 4 - 0
local-run/bin/start-full-local.sh

@@ -3163,6 +3163,10 @@ start_tomcat() {
 		<string>${TOMCAT_BASE}</string>
 		<string>${TOMCAT_BASE}</string>
 		<key>CATALINA_PID</key>
 		<key>CATALINA_PID</key>
 		<string>${pid_file}</string>
 		<string>${pid_file}</string>
+		<key>JAVA_HOME</key>
+		<string>${JAVA_HOME}</string>
+		<key>JRE_HOME</key>
+		<string>${JAVA_HOME}/jre</string>
 		<key>JAVA_OPTS</key>
 		<key>JAVA_OPTS</key>
 		<string>-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8</string>
 		<string>-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8</string>
 	</dict>
 	</dict>