java jre °²×°·½·¨ FOR FEDORE
Let's begin by downloading the latest version of JRE (Java Runtime
Environment) from here
.
Just click on the Download link where it says Java Runtime
Environment (JRE) 5.0 Update
, then you�ll need to accept the license
and download the Linux self-extracting file
.By default, Fedora Core 6 systems come with an old
Java software installed, so you need to install a newer version of Java
Runtime Environment to enjoy all the Java applications out there. In
this quick guide, I will teach you how to update/install your Java
Environment.
WARNING:
Please remember to always replace the xx
from the jre-1_5_0_xx-linux-i586.bin
file with the latest version. At the moment of this guide�s writing,
the latest version was 09
, so the file should look like this: jre-1_5_0_09-linux-i586.bin
After
you have finished downloading the file, you need to move it into the /opt
folder. Open a console and type:
mv
jre-1_5_0_xx-linux-i586.bin /opt
Now, you will need to
make this file executable so you can extract it. Follow the commands
below:
cd /opt
- so you can go
into the /opt directory
chmod +x
jre-1_5_0_xx-linux-i586.bin
And now, let's run the
executable file with the following command:
./jre-1_5_0_xx-linux-i586.bin
You'll
be prompted with the License Agreement, hit space until you are asked
if you agree or not. Type Yes
and the extraction process will
begin. After the extraction process is finished, just remove the binary
file with the following command:
rm -rf
jre-1_5_0_xx-linux-i586.bin
Now, let's put the Java
plugin into your browser's plugin folder. Konqueror, Firefox and Mozilla
browsers will all look into the same folder, for plugins. So type the
following command:
ln -s
/opt/jre1.5.0_xx/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
Well,
now you need to make the Java executable available for the whole system,
so you can run all the Java applic
Ïà¹ØÎĵµ£º
1. ¼Ä´æÆ÷£¨register£©¡£ÕâÊÇ×î¿ìµÄ´æ´¢Çø£¬ÒòΪËüλÓÚ´¦ÀíÆ÷ÄÚ²¿¡£µ«Äã²»ÄÜÖ±½Ó¿ØÖÆ£¬Ò²²»ÄÜÔÚ³ÌÐòÖиоõµ½¼Ä´æÆ÷´æÔÚµÄÈκμ£Ïó¡£
2. ¶ÑÕ»£¨stack£©¡£Î»ÓÚͨÓÃRAMÖУ¬¶ÑÕ»Ö¸ÕëÈôÏòÏÂÒÆ¶¯£¬Ôò·ÖÅäеÄÄڴ棻ÈôÏòÉÏÒÆ¶¯£¬ÔòÊÍ·ÅÄÇЩÄÚ´æ¡£ÕâÊÇÒ»ÖÖ¿ìËÙÓÐЧµÄ·ÖÅä´æ´¢·½·¨£¬½ö´ÎÓڼĴæÆ÷¡£´´½¨³ÌÐòʱºò£¬JAVA±àÒëÆ÷±ØÐëÖªµ ......
µÚÒ»Õ ¸ÅÊö
°æÈ¨ÉùÃ÷
´ËÎĵµÓɱ¾È˸ºÔðÕûÀí×ܽᣬ²¢¶Ô¸ÃÎĵµ±£ÓÐÓÐÏÞÔðÈÎȨÀû£¬´ËÎĵµÖ»ÄÜÓÃÓÚѧϰÒÔ¼°½Ìѧ£¬ÇëÎðÓÃ×÷ÉÌÒµÓÃ;£¬Òò´Ë¶ø
²úÉúµÄ·¨ÂÉÎÊÌ⣬±¾ÈËÒ»¸Å²»¸ºÔð¡£ ±¾ÈËÉùÃ÷£¬´ËÎĵµ×ÊÁÏΪ±¾È˽Ìѧ¾ÑéºÍÍøÂç×ÊÁÏÊÕ¼¯ºÏ²¢Ö®³É¹û ......
//ʹÓÃabstractÄ¿µÄÊÇΪÁËÈÃʹÓÃÕßÖ»Äܵ÷ÓÃgetInstance»ñȡʵÀý
public abstract class RegexUtil {
public static void main(String[] args) {
RegexUtil ru = RegexUtil.getInstance();
String regexp = "(\\d+.\\d+.\\d+.\\d+):(\\d+)";
String data = "ldap://192.168.16.152:389/";
......
2.2 ´úÂëʵÏÖ
ÏÂÃæ¸ø³öÁËFlexBuilder¹¤³ÌµÄÒ»¸öÎļþ£¬ÉèÖÃÁËFlashµÄ²¼¾Ö¡£
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
......
JavaÖÐ"Òì³£»úÖÆ"µÄÉîÈëÑо¿
¡¡¡¡ÓÉÓÚ±¾ÎÄÖ¼ÔÚ̽ÌÖJava"Òì³£»úÖÆ"µÄÉî²ãÔÀí£¬Òò´Ë¹ØÓÚ"Òì³£"µÄʹÓ÷½·¨¶¼²»×öÏêϸ˵Ã÷¡£Ê×ÏÈ¿´Ò»¶Î·Ç³£ÊìϤµÄÓÃÓÚ´ò¿ªÒ»¸öÎļþµÄC³ÌÐò¶Î£º
¡¡¡¡FILE *fp;
¡¡¡¡fp=fopen(filename,"rw");
¡¡¡¡if(fp==NULL){
¡¡¡¡printf("cannot open file\n");
¡¡¡¡exit(0);
¡¡¡¡}
......