- 浏览: 427040 次
- 性别:
- 来自: 北京
-
文章分类
- 全部博客 (239)
- java (59)
- JQuery (5)
- oracle (12)
- javascript (14)
- struts1 (1)
- spring (10)
- Quartz (2)
- ibatis (1)
- linux (32)
- weblogic (3)
- ibaits (2)
- servlet (1)
- log4j (5)
- 编程人生 (2)
- apache (3)
- window (3)
- web前端 (25)
- 错误集合 (2)
- 框架配置 (1)
- 开发工具 (15)
- 小插件应用 (1)
- lucene (1)
- sonar (1)
- velocity (1)
- 代码检查 (0)
- error (1)
- jndi (1)
- oracle函数 (1)
- tools (1)
- 代码管理 (3)
- mysql (4)
- maven (9)
- bat (1)
- git (3)
- aix (2)
- freemarker (1)
- svn (2)
- nginx (6)
最新评论
-
masuweng:
f
修改eclipse的内存 -
洞渊龙王:
...
maven-surefire-plugin学习 -
phf717601206:
WEB-INF/lib下就没有servlet-api.jar ...
Unable to read TLD "META-INF/c.tld"错误 -
sziitjiang:
很好,非常不错
Java读写excel之poi -
dengminghua1016:
doris1bruce 写道一、二、 ...
java创建对象的几种方式
Linux 默认安装的 Java JDK 是 1.4.2 版本的,可从http://java.sun.com/javase/downloads/index.jsp 下载最新的 JDK 1.6 (Java 新起了个名叫 JDK 6) ,并按下面方法进行升级:
一、安装新的 JDK (注意红字为用户输入的)
[root@catdb java]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@catdb java]# pwd
/software/java
[root@catdb java]# ls
jdk-6u18-linux-x64-rpm.bin
[root@catdb java]# ./jdk-6u18-linux-x64-rpm.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6
......
1. DEFINITIONS. "Software" means the identified above in
......
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u18-linux-amd64.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 Sun products, services and training
* Access to early releases and documentation
Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK 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.....
Done.
二、配置新的环境变量
[root@catdb java]# vi /etc/profile
最配置文件最后加入下面变量:
# for java jdk6
export JAVA_HOME=/usr/java/jdk1.6.0_18
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar
三、重启系统或用下面命令让新环境变量立即生效:
[root@catdb java]# source /etc/profile
[root@catdb java]# java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
[root@catdb java]#
发表评论
-
linux下启动图像界面以及启动weblogic服务
2014-06-04 22:08 1488在启动weblogic的时候我们经常看到如下的命令: ... -
RHEL5安装yum
2013-09-10 20:12 10241.确保RHEL5中已经安装了yum [root@lv ... -
linux下mysql配置文件my.cnf详解
2013-09-09 18:45 902linux下mysql配置文件my.cnf详解【转】 ... -
nohup命令的用法
2013-05-16 18:58 858在应用Unix/Linux时,我们一般想让某个程序在后台运行 ... -
Linux文件或目录的读,写,执行权限
2013-03-24 21:26 2142文件或目录的存取权限 Permissions, impo ... -
linux之jdk1.6安装
2013-03-22 18:11 858一.下载JDK 1.登录Sun的JDK官方下载网址:ht ... -
linux中rpm.bin文件与bin文件的区别?
2013-03-22 17:22 859rpm.bin 你执行后会生成rpm打包的安装文件 你就可以 ... -
CentOS 6 mysql5.5安装配置
2013-01-27 18:38 5714MySQL是一个关系型数 ... -
shell学习(变量)
2012-10-18 09:21 839#!/bin/bash # #开头的行注释 # she ... -
shell编程入门(二)
2012-09-12 18:38 826Shell编程很有趣,Shell编程很复杂,Shell编程离我 ... -
shell编程入门(一)
2012-09-12 18:19 992Shell编程很有趣,Shell编程很复杂,Shell编程离我 ... -
Linux目录结构
2012-09-12 11:54 1023使用linux也有一年多时 ... -
find查找文件或者目录命令
2012-06-08 22:54 1845find是一个非常好的工具,它可以遍历当前目录甚至整个文件系统 ... -
chmod命令详解
2012-06-05 18:44 1008在linux上执行 ... -
linux退出vi编辑器命令
2012-06-05 17:11 1460:q 退出:q! 强行退出(不存盘):wq 强制性写入文件并退 ... -
linux下安装ftp
2012-06-05 16:34 1228[root@localhost /]# yum install ... -
Linux关机命令详解
2012-04-18 00:06 862在linux下一些常用 ... -
linux命令
2012-04-18 00:02 0切换用户:su - root -
linux下oracle rac集群 crs常用命令
2012-01-12 14:48 5476常用的crs命令如下: $ORA_CRS_HOME/bi ... -
redhat linux安装gcc编译器
2011-12-25 23:24 1154Linux软件安装通用思路 ...
评论