tomcat学习1

java 需要jdk和jre进行编译,我们可以通过这三处文件多jdk和jre进行动态配置;

1处文件是配置jdk和jre的(要配置在文件头部,相当于定义全局变量)

rem ---------------------------------------------------------------------------
rem Set JAVA_HOME or JRE_HOME if not already set, ensure any provided settings
rem are valid and consistent with the selected start-up options and set up the
rem endorsed directory.
rem ---------------------------------------------------------------------------

set JAVA_HOME = C:\Program Files\Java\jdk1.8.0_181
set JRE_HOME = C:\Program Files\Java\jre1.8.0_181

rem Make sure prerequisite environment variables are set

rem In debug mode we need a real JDK (JAVA_HOME)
if ""%1"" == ""debug"" goto needJavaHome

有事路径混乱,需要重新定义安装路径(配置2和3的文件)

2

set JAVA_HOME = C:\Program Files\Java\jdk1.8.0_181
set TOMCAT_HOME = C:\xampp\tomcat

@echo off
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements.  See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License.  You may obtain a copy of the License at

3

set JAVA_HOME = C:\Program Files\Java\jdk1.8.0_181
set TOMCAT_HOME = C:\xampp\tomcat

@echo off
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements.  See the NOTICE file distributed with

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值