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
相关文档:
List的用法
List包括List接口以及List接口的所有实现类。因为List接口实现了Collection接口,所以List接口拥有Collection接口提供的所有常用方法,又因为List是列表类型,所以List接口还提供了一些适合于自身的常用方法,如表1所示。
表1 List接口定义的常用方法及功能
从表1可以看出,List接口提供的适合于自身的 ......
用JAVA实现缓冲多线程无阻塞读取远程文件
http://ajava.org/course/java/10688.html
使用FileChannel和ByteBuffer
http://www.java2s.com/CN/Code/Java/File-Input-Output/useFileChannelandByteBuffer.htm
java.nio.Buffer缓冲区基础
http://zcdxzsz.javaeye.com/blog/310917
Java NIO 应用 -- 使用内存映射文件实现 ......
第一章 概述
版权声明
此文档由本人负责整理总结,并对该文档保有有限责任权利,此文档只能用于学习以及教学,请勿用作商业用途,因此而
产生的法律问题,本人一概不负责。 本人声明,此文档资料为本人教学经验和网络资料收集合并之成果 ......
动态代理是指客户通过代理类来调用其它对象的方法
动态代理使用场合:
•远程方法调用(RMI)
•
1.创建一个实现接口InvocationHandler的类,它必须实现invoke方法
2.创建被代理的类以及接口
3.通过Proxy的静态方法
newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler ......
第二章 类和对象
A. 万物皆对象
B. 对象由表示状态的属性和表示行为的方法组成
C.   ......