首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux上安装tomca和JDK

2012-09-09 
linux下安装tomca和JDK1安装JDK如果显示:java version 1.6.0_25Java(TM) SE Runtime Environment (build

linux下安装tomca和JDK

1安装JDK

如果显示:

java version "1.6.0_25"

Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)

说明已经安装了系统自带的JDK。

显示:

java-1.4.2-gcj-compat-1.4.2.0-27jpp

gcc-java-3.4.6-3

删除原JDK。

显示:

Unpacking...

Checksumming...

Extracting...

UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).

? inflating: jdk-6u23-linux-i586.rpm?

? inflating: sun-javadb-common-10.5.3-0.2.i386.rpm?

? inflating: sun-javadb-core-10.5.3-0.2.i386.rpm?

? inflating: sun-javadb-client-10.5.3-0.2.i386.rpm?

? inflating: sun-javadb-demo-10.5.3-0.2.i386.rpm?

? inflating: sun-javadb-docs-10.5.3-0.2.i386.rpm?

? inflating: sun-javadb-javadoc-10.5.3-0.2.i386.rpm?

Preparing...??????????????? ########################################### [100%]

?? 1:jdk??????????????????? ########################################### [100%]

Unpacking JAR files...

rt.jar...

jsse.jar...

charsets.jar...

tools.jar...

localedata.jar...

plugin.jar...

javaws.jar...

deploy.jar...

Installing JavaDB

Preparing...??????????????? ########################################### [100%]

?? 1:sun-javadb-common????? ########################################### [ 17%]

?? 2:sun-javadb-core??????? ########################################### [ 33%]

?? 3:sun-javadb-client????? ########################################### [ 50%]

?? 4:sun-javadb-demo??????? ########################################### [ 67%]

?? 5:sun-javadb-docs??????? ########################################### [ 83%]

?? 6:sun-javadb-javadoc???? ########################################### [100%]

?

Java(TM) SE Development Kit 6 successfully installed.

?

Product Registration is FREE and includes many benefits:

* Notification of new versions, patches, and updates

* Special offers on Oracle products, services and training

* Access to early releases and documentation

?

Product and system data will be collected. If your configuration

supports a browser, the JDK Product Registration form will

be presented. If you do not register, none of this information

will be saved. You may also register your JDK later by

opening the register.html file (located in the JDK installation

directory) in a browser.

?

For more information on what data Registration collects and

how it is managed and used, see:

http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

?

Press Enter to continue.....

说明JDK已经安装成功。

添加如下内容:

export JAVA_HOME=/root/jdk1.6.0_18(JDK所在目录)

export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export PATH=$PATH:$JAVA_HOME/bin

export JRE_HOME=$JAVA_HOME/jre

显示:

java version "1.6.0_25"

Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)

说明JDK已经安装成功。

2安装Tomcat

?

热点排行