tomcat自定义jdk路径
来源:互联网 发布:泰国mac口红便宜吗 编辑:程序博客网 时间:2024/05/16 10:53
在bin->setclasspath.bat 里面加入
set JAVA_HOME=C:\Java\jdk1.8.0_60
set JRE_HOME=C:\Java\jre8
@echo off
rem Licensed to the Apache Software Foundation (ASF) under one or morerem 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
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
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 ---------------------------------------------------------------------------
rem Make sure prerequisite environment variables are set
rem In debug mode we need a real JDK (JAVA_HOME)
set JAVA_HOME=C:\Java\jdk1.8.0_60
set JRE_HOME=C:\Java\jre8
if ""%1"" == ""debug"" goto needJavaHome
rem Otherwise either JRE or JDK are fine
if not "%JRE_HOME%" == "" goto gotJreHome
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
echo At least one of these environment variable is needed to run this program
goto exit
:needJavaHome
rem Check if we have a usable JDK
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\javaw.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\jdb.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\javac.exe" goto noJavaHome
set "JRE_HOME=%JAVA_HOME%"
goto okJava
:noJavaHome
echo The JAVA_HOME environment variable is not defined correctly.
echo It is needed to run this program in debug mode.
echo NB: JAVA_HOME should point to a JDK not a JRE.
goto exit
:gotJavaHome
rem No JRE given, use JAVA_HOME as JRE_HOME
set "JRE_HOME=%JAVA_HOME%"
:gotJreHome
rem Check if we have a usable JRE
if not exist "%JRE_HOME%\bin\java.exe" goto noJreHome
if not exist "%JRE_HOME%\bin\javaw.exe" goto noJreHome
goto okJava
:noJreHome
rem Needed at least a JRE
echo The JRE_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto exit
:okJava
rem Don't override the endorsed dir if the user has set it previously
if not "%JAVA_ENDORSED_DIRS%" == "" goto gotEndorseddir
rem Set the default -Djava.endorsed.dirs argument
set "JAVA_ENDORSED_DIRS=%CATALINA_HOME%\endorsed"
:gotEndorseddir
rem Don't override _RUNJAVA if the user has set it previously
if not "%_RUNJAVA%" == "" goto gotRunJava
rem Set standard command for invoking Java.
rem Also note the quoting as JRE_HOME may contain spaces.
set _RUNJAVA="%JRE_HOME%\bin\java.exe"
:gotRunJava
rem Don't override _RUNJDB if the user has set it previously
rem Also note the quoting as JAVA_HOME may contain spaces.
if not "%_RUNJDB%" == "" goto gotRunJdb
set _RUNJDB="%JAVA_HOME%\bin\jdb.exe"
:gotRunJdb
goto end
:exit
exit /b 1
:end
exit /b 0
阅读全文
0 0
- Tomcat自定义jdk路径
- tomcat自定义jdk路径
- tomcat 自定义JDK路径 setclasspath.sh 和setclasspath.bat
- tomcat配置JDK路径
- jdk tomcat 路径设置
- Tomcat改变JDK路径
- tomcat 指定jdk路径
- Tomcat设置JDK路径
- tomcat环境多个jdk版本自定义使用JDK版本及路径
- tomcat配置自定义JDK
- 绿色版 tomcat 配置 jdk 路径
- 为Tomcat制定JDK路径
- tomcat里面配置jdk路径
- 设置Tomcat的JDK路径
- tomcat手动指定jdk路径
- tomcat自定义jdk版本实践
- jdk , tomcat , mysql 的路径问题
- Tomcat启动内存配置、jdk路径配置
- javaScript函数提升(Hoisting)及作用域(Scoping)
- LeetCode 318 Maximum Product of Word Lengths
- python+selenium自动化能打开火狐浏览器打开不开网址
- vue分页,87行代码完美实现,长得帅的都已经转载了,丑的还在犹豫
- Tomcat 配置详解/优化方案
- tomcat自定义jdk路径
- 关于HTML5中的拖拽
- Shell Scripts--鸟哥私房菜读书笔记
- Viusal 各个版本离线镜像
- OpenStack实例创建失败
- nginx与php工作原理总结
- 对notifyDataSetChanged与notifyDataSetInvalidated的区别
- Oracle 导出、导入某用户所有数据(包括表、视图、存储过程...)
- Java1.5新特性