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
Ïà¹ØÎĵµ£º
4 ÔÚjava´úÂëÀïǶÈëFirefox3
ÏÖÔÚ¿ÉÒÔÈ¥ÓÃÒ»ÏÂÓÐÓõÄÀý×ÓÁË¡£Ê×ÏÈÎÒÃÇÔÚÒ»¸öjava³ÌÐòÀïʹÓÃSWTÀ´Ç¶ÈëÒ»¸öMozillaä¯ÀÀÆ÷¡£ÏÖÔÚ£¬ÎÒÃÇ¿ÉÒÔʹÓÃ
org.eclipse.swt.browser.BrowserÀàÀ´ÊµÀý»¯£ºbrowser = new Browser(shell, SWT.MOZILLA); ÔÚÕâ֮ǰ£¬ÎÒÃÇÐèҪʹÓÃATFÏîÄ¿
£¬ÒÔ¼°Ò»ÏÂATF²å¼þ¡£·Ç³£ÐÒÔË£¬ÏÖÔÚÎÒÃDz»ÐèÒ ......
½ñÈÕÔÚÍøÉÏżȻÅöµ½Ò»¸ö³õѧÕßµÄjavaÌâÄ¿£¬¾Í³¢ÊÔµÄ×öÁËһϣ¬µ«Ã»Ïëµ½Ò»×ö¾ÍÊǽӽüÒ»¸öÖÓÍ·°¡£¬¿´À´javaѧϰµÄ·ÉÏ»¹ÊÇ·ÂþÂþÙâÐÞÔ¶°¡¡£
ÌâÄ¿ÈçÏ£º
±àдһ¸öJava Application ³ÌÐò£¬½ÓÊÜÓû§ÊäÈëµÄÒ»¸ö¸¡µãÊý£¬½«ÆäµÄÕûÊý²¿·ÖºÍСÊý²¿·Ö·Ö±ðÊä³ö¡£
È磺ÊäÈë56.6 £¬ÔòÓÐ
¡¡¡¡¡¡¡¡¡¡¡¡ÕûÊý²¿·Ö£º56
¡¡¡¡¡¡¡¡¡¡¡¡ ......
¡¡¡¡ÃÀ¹ú¾É½ðɽʱ¼ä2005Äê6ÔÂ28ÈÕÉÏÎ磬ÔÚÓÉÈ«Çò10000¶àÃû¿ª·¢ÈËÔ±³öϯµÄ“2005 Java One¿ª·¢Õß´ó»á&r ......
¡¡¡¡¸ù¾ÝÔ¼¶¨£¬ÔÚʹÓÃjava±à³ÌµÄʱºòÓ¦¾¡¿ÉÄܵÄʹÓÃÏÖÓеÄÀà¿â£¬µ±È»ÄãÒ²¿ÉÒÔ×Ô¼º±àдһ¸öÅÅÐòµÄ·½·¨£¬»òÕß¿ò¼Ü£¬µ«ÊÇÓм¸¸öÈËÄÜдµÃ±ÈJDKÀïµÄ»¹ÒªºÃ ÄØ£¿Ê¹ÓÃÏÖÓеÄÀàµÄÁíÒ»¸öºÃ´¦ÊÇ´úÂëÒ×ÓÚÔĶÁºÍά»¤£¬ÕâÆªÎÄÕÂÖ÷Òª½²µÄÊÇÈçºÎʹÓÃÏÖÓеÄÀà¿â¶ÔÊý×éºÍ¸÷ÖÖCollectionÈÝÆ÷½øÐÐÅÅÐò£¬(ÎÄÕÂÖеÄÒ» ²¿·ÖÀý×ÓÀ´×Ô¡¶Java Devel ......
Java¼¸¸ö³£ÓõIJ¼¾Ö¹ÜÀíÆ÷Àà:
°ü
Àà
ÌØµã
java.awt
CardLayout
½«×é¼þÏó¿¨Æ¬Ò»Ñù·ÅÖÃÔÚÈÝÆ÷ÖУ¬ÔÚijһʱ¿ÌÖ»ÓÐÒ»¸ö×é¼þ¿É¼û
java.awt
FlowLayout
½«×é¼þ°´´Ó×óµ½ÓÒ¶øºó´ÓÉϵ½ÏµÄ˳ÐòÒÀ´ÎÅÅÁУ¬Ò»Ðв»ÄÜ·ÅÍêÔòÕÛµ½ÏÂÒ»ÐмÌÐø·ÅÖÃ
java.awt
GridLayout
ÐÎËÆÒ»¸öÎÞ¿òÏߵıí¸ñ£¬Ã¿¸öµ¥Ôª¸ñÖзÅÒ»¸ö×é¼þ
java.awt
......