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 ......
http://www.cnblogs.com/anran_guojianjun/archive/2009/04/14/1435278.html
wait(),notify(),notifyAll()不属于Thread类,而是属于Object基础类,也就是说每个对像都有
wait(),notify(),notifyAll()
的功能.因为都个对像都有锁,锁是每个对像的基础,当然操作锁的方法也是最基础了.
先看java doc怎么说:
wait导致当 ......
此个类是为了方便初学者对XML到 javabean 的相互转换不熟悉而写的:
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
public class XmlBean {
/*
* @AUTHOR:ZHONG
* @CREATETIME:2010/02/10
* @PREAM:OBJECT(JAVABEAN)
* @RETURN:X ......
http://techpool.javaeye.com/blog/486326
2009-10-12
JAVA如何执行DOS命令
JAVA如何执行DOS命令
下面是一种比较典型的程序模式:
...
Process process = Runtime.getRuntime().exec(".\\p.exe");
process.waitfor( );
... ......
根据约定,在使用java编程的时候应尽可能的使用现有的类库,当然你也可以自己编写一个排序的方法,或者框架,但是有几个人能写得比JDK里的还要好 呢?使用现有的类的另一个好处是代码易于阅读和维护,这篇文章主要讲的是如何使用现有的类库对数组和各种Collection容器进行排序,(文章中的一 部分例子来自《Java Devel ......