zoukankan      html  css  js  c++  java
  • tomcat java变量环境设置



    绿色版tomcat 手动启动startup.bat的时候出现一闪而过的状态。解决方法,配置startup.bat文件

    1. @echo off
    2. SET JAVA_HOME=C:Program Files (x86)Javajdk1.6.0_10 #这里
    3. SET CATALINA_HOME=D: omcat6035
    4. SET CATALINA_BASE=D: omcat6035
    5. rem Licensed to the Apache Software Foundation (ASF) under one or more
    6. rem contributor license agreements. See the NOTICE file distributed with
    7. rem this work for additional information regarding copyright ownership.
    8. rem The ASF licenses this file to You under the Apache License, Version 2.0
    9. rem (the "License"); you may not use this file except in compliance with
    10. rem the License. You may obtain a copy of the License at
    11. rem
    12. rem http://www.apache.org/licenses/LICENSE-2.0
    13. rem
    14. rem Unless required by applicable law or agreed to in writing, software
    15. rem distributed under the License is distributed on an "AS IS" BASIS,
    16. rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    17. rem See the License for the specific language governing permissions and
    18. rem limitations under the License.
    19. if "%OS%" == "Windows_NT" setlocal
    20. rem ---------------------------------------------------------------------------
    21. rem Start script for the CATALINA Server
    22. rem
    23. rem $Id: startup.bat 908749 2010-02-10 23:26:42Z markt $
    24. rem ---------------------------------------------------------------------------
    25. rem Guess CATALINA_HOME if not defined
    26. set "CURRENT_DIR=%cd%"
    27. if not "%CATALINA_HOME%" == "" goto gotHome
    28. set "CATALINA_HOME=%CURRENT_DIR%"
    29. if exist "%CATALINA_HOME%incatalina.bat" goto okHome
    30. cd ..
    31. set "CATALINA_HOME=%cd%"
    32. cd "%CURRENT_DIR%"
    33. :gotHome
    34. if exist "%CATALINA_HOME%incatalina.bat" goto okHome
    35. echo The CATALINA_HOME environment variable is not defined correctly
    36. echo This environment variable is needed to run this program
    37. goto end
    38. :okHome
    39. set "EXECUTABLE=%CATALINA_HOME%incatalina.bat"
    40. rem Check that target executable exists
    41. if exist "%EXECUTABLE%" goto okExec
    42. echo Cannot find "%EXECUTABLE%"
    43. echo This file is needed to run this program
    44. goto end
    45. :okExec
    46. rem Get remaining unshifted command line arguments and save them in the
    47. set CMD_LINE_ARGS=
    48. :setArgs
    49. if ""%1""=="""" goto doneSetArgs
    50. set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    51. shift
    52. goto setArgs
    53. :doneSetArgs
    54. call "%EXECUTABLE%" start %CMD_LINE_ARGS%
    55. :end

  • 相关阅读:
    Running as a packaged application--- -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n
    Druid 专题
    java8中的localdate和localtime用法举例
    Spring处理跨域请求
    数据库版本管理工具Flyway——基础篇
    QQ邮箱开启SMTP服务的步骤
    QQ邮箱如何设置SMTP代理收发邮件
    SMTP协议简介
    Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException
    Android客户端与服务器交互中的token
  • 原文地址:https://www.cnblogs.com/signheart/p/6603476.html
Copyright © 2011-2022 走看看