Chinaunix首页 | 论坛 | 博客
  • 博客访问: 246925
  • 博文数量: 61
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 800
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-14 15:18
文章分类

全部博文(61)

文章存档

2011年(4)

2010年(5)

2009年(10)

2008年(42)

我的朋友

分类: LINUX

2008-12-17 17:34:49

一些概念:
(1)JDK JRE,SDK
JRE = Java 运行时环境,有了它就能运行Java程序,可以理解为java虚拟机。
JDK = Java 开发环境,除能运行Java程序外,有Java 标准API类库,可以在此基础上开发Java程序。
JDK包含JRE,JRE包含JVM。
Java SDK最早叫Java Software Develop Kit,后来改名为JDK.
(2) version
JavaTM SE 6, Platform Name and Version Numbers
At this release, the platform name has changed from J2SETM to JavaTM SE. The official name is JavaTM Platform, Standard Edition 6.
Both version numbers (1.6.0 and 6) are used to identify this release of the Java Platform. Version 6 is the product version, while 1.6.0 is the developer version. The number 6 is used to reflect the evolving level of maturity, stability, scalability and security of Java SE.
1. JDK setup
 
1) download jdk from sun.java.com
 jdk-6u11-linux-i586.bin
 
2) unzip
chmod -x jdk-6u11-linux-i586.bin
./jdk-6u11-linux-i586.bin
 
3) change java dir:
mkdir /usr/java
cp -fr ./jdk1.6.0_11 /usr/java
 
4) setup environment
vi /etc/profile to add the following lines
export  JAVA_HOME=/usr/java/jdk1.6.0_11
export  CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export  PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
 
2. tomcat setup
1). download from  
apache-tomcat-5.5.27.tar.gz
 
2). unzip and test
cd tomcat_dir
 bin/startup.sh
Using CATALINA_BASE:   /usr/local/src/apache-tomcat-5.5.27
Using CATALINA_HOME:   /usr/local/src/apache-tomcat-5.5.27
Using CATALINA_TMPDIR: /usr/local/src/apache-tomcat-5.5.27/temp
Using JRE_HOME:       /usr/java/jdk1.6.0_11
 
access from web browser 
 
3) environment variables
vi /etc/profile
TOMCAT_HOME=/usr/local/src/apache-tomcat-5.5.27
 

 
阅读(732) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~