Chinaunix首页 | 论坛 | 博客
  • 博客访问: 246798
  • 博文数量: 55
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 261
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-19 01:34
文章分类

全部博文(55)

文章存档

2013年(37)

2009年(6)

2008年(12)

我的朋友

分类: Java

2013-09-05 20:35:45

原文地址:JDK+TOMCAT环境变量配置 作者:laoadiy

JDK

JAVA_HOME  D:\Software\Java\jdk1.6.0_21

PATH  D:\Software\Java\jdk1.6.0_21;加在最前面

CLASSPATH  D:\Software\Java\jdk1.6.0_21\jre\lib\rt.jar;D:\Software\apache-tomcat-6.0.26\lib;

 

命令窗口执行java

C:\Users\Administrator>java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

    -cp
    -classpath
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D=
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:...|:]
    -enableassertions[:...|:]
                  enable assertions
    -da[:...|:]
    -disableassertions[:...|:]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:[=]
                  load native agent library , e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:[=]
                  load native agent library by full pathname
    -javaagent:[=]
                  load Java programming language agent, see java.lang.instrument

    -splash:
                  show splash screen with specified image

 

命令窗口执行java -version

C:\Users\Administrator>java -version
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)

C:\Users\Administrator>

如果出现上述提示就说明配置成功了

 

TOMCAT 配置

CATALINA_NAME  D:\Software\apache-tomcat-6.0.26

PATH  D:\Software\apache-tomcat-6.0.26\bin; 加在后面

CLASSPATH  D:\Software\apache-tomcat-6.0.26\lib;

 

命令窗口执行 startup 出现如下提示并且弹出Tomcat启动过程窗口

C:\Users\Administrator>startup
Using CATALINA_BASE:   "D:\Software\apache-tomcat-6.0.26"
Using CATALINA_HOME:   "D:\Software\apache-tomcat-6.0.26"
Using CATALINA_TMPDIR: "D:\Software\apache-tomcat-6.0.26\temp"
Using JRE_HOME:        "D:\Software\Java\jdk1.6.0_21"
Using CLASSPATH:       "D:\Software\apache-tomcat-6.0.26\bin\bootstrap.jar"
C:\Users\Administrator>

Tomcat启动日志

2013-2-16 10:51:39 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 565 ms
2013-2-16 10:51:39 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-2-16 10:51:39 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.26
2013-2-16 10:51:39 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2013-2-16 10:51:40 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2013-2-16 10:51:40 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2013-2-16 10:51:40 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2013-2-16 10:51:40 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2013-2-16 10:51:40 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2013-2-16 10:51:40 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2013-2-16 10:51:40 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/30  config=null
2013-2-16 10:51:40 org.apache.catalina.startup.Catalina start
信息: Server startup in 873 ms

打开浏览器出现Tomcat的页面 配置成功

阅读(3117) | 评论(0) | 转发(0) |
0

上一篇:oracle学习路线

下一篇:RAID 技术原理

给主人留下些什么吧!~~