HowTo Install Java on CentOS 4 and CentOS 5
http://writeblog.csdn.net/PostEdit.aspx?entryId=5305099
Contents
Preliminary material
Method One: A simple approach
Method Two: A less simple approach
Java for the desktop user
Java for the developer and the server environment
Requirements
Step 1. Initial setup
Step 2. Installing your favorite JDK
A. Sun JDK 1.4.2
B. IBM JDK 1.4.2
C. Sun JDK 1.5
D. IBM JDK 1.5
E. Sun JDK 1.6
Step 3. Install the JPackage repository (CentOS 4 only - this step is optional, not finished)
Other Tools
Administrivia
1. Preliminary material
The Sun
license concerning distribution of Java (through to Java 6) contains
clauses, the terms of which, the CentOS team have concluded they cannot
meet. Conversations with Sun's representatives on a modified
distribution license were underway in August 2008 but they did not
yield fruit. Seemingly Sun was looking forward to the more free, later,
Java releases (on the horizon, upstream) in our upstream's Fedora
project.
SPECIAL NOTE: Starting with CentOS 5.3 the upstream source for SRPMs, which the project rebuilds into the base
and updates
repositories, has added the openjdk
product into the freely available sources as part of its distribution.
As such, the CentOS project can now ship an integrated Java
implementation. Using this approach can greatly simplify installation
matters and we encourage you to consider using the proper subset from
the following newly provided packages & filing bugs upstream, if
problems are noted.
[user@host ~]$ sudo yum list \*java-1\* | grep open
java-1.6.0-openjdk.x86_64 1:1.6.0.0-0.25.b09.el5 base
java-1.6.0-openjdk-demo.x86_64 1:1.6.0.0-0.25.b09.el5 base
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-0.25.b09.el5 base
java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.0-0.25.b09.el5 base
java-1.6.0-openjdk-src.x86_64 1:1.6.0.0-0.25.b09.el5 base
[user@host ~]$
Additionally, some fonts are req
相关文档:
可以用做csdn备份,这个方法扩充以后做个csdn备份工具倒是不错
package com.tag;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import ja ......
想步入JAVA的世界,看书学?
此路不通。
先看C的知识点是否懂了,再看下一个:隆重推出——郝彬老师的视频。
什么叫由浅入深?这就叫!
不好意思,家乡的土话!
有人说过:“门槛是最高的山!”。这话太对了。而郝彬老师的视频,则绝对是把门槛变平的绝佳利器!
WWW。ITCAST。NET ......
字符类型:
CHAR(size):固定长度字符串,最大长度2000 bytes
VARCHAR2(size):可变长度的字符串,最大长度4000 bytes,可做索引的最大长度749
NCHAR(size):根据字符集而定的固定长度字符串,最大长度2000 bytes
NVARCHAR2(size):根据字符集而定的可变长度字符串,最大长度4000 byte
LONG:变长的字符串,最大长度限 ......
根据约定,在使用java编程的时候应尽可能的使用现有的类库,当然你也可以自己编写一个排序的方法,或者框架,但是有几个人能写得比JDK里的还要好 呢?使用现有的类的另一个好处是代码易于阅读和维护,这篇文章主要讲的是如何使用现有的类库对数组和各种Collection容器进行排序,(文章中的一 部分例子来自《Java Devel ......
Java时间设为二十四小时制和十二小时制的区别:
1) 二十四小时制: “yyyy-MM-dd HH:mm:ss”
2)十二小时制: “"yyyy-MM-dd hh:mm:ss"”
例(二十四小时制):
private String getTime(){
Calendar now;
SimpleDateFormat fmt;
now = Calendar.getInstance();
fmt = new S ......