java jre 安装方法 FOR FEDORE
来源:互联网 发布:监听端口 编辑:程序博客网 时间:2024/06/14 16:43
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 applications you encounter. Create the following file with your preferred text editor:
kwrite /etc/profile.d/java.sh
Now paste the following options into the file, remember to enter a carriage return after these lines, then save it. Remember to replace the xx with the latest version you have downloaded:
export J2RE_HOME=/opt/jre1.5.0_xx
export PATH=$J2RE_HOME/bin:$PATH
Now, type the following command to make that file available:
source /etc/profile.d/java.sh
Then type this command to see if the path is correct:
which java
You will see something like this: /opt/jre1.5.0_09/bin/java
Then type these commands:
/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_xx/bin/java 2
/usr/sbin/alternatives --config java
After you have entered the last command, you'll be asked to choose which Java software you want for your system. Just press 2 key and hit enter.
And finally, just type this command to see if everything looks good and your system has a new Java Environment:
/usr/sbin/alternatives --display java
And you can also type this command to see the version of your Java Runtime Environment:
java -version
Mine looks like this:
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)
You should now be able to run most of the Java applications out there, with the commands like:
java -jar application.jar
or
javaws application.jnlp
Enjoy!
虽然是JRE但是JDK 也是可是使用这个方法安装的
或者参见
http://www.howtoforge.com/sun_java_se6sdk_netbeans_fedora7_p2
ed2k://|file|%E9%B8%9F%E5%93%A5%E7%9A%84Linux%E7%A7%81%E6%88%BF%E8%8F%9C_%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0%E7%AF%87%28%E7%AC%AC%E4%BA%8C%E7%89%88%29.zip|69817603|0c1fd48998f54a6ac801426ecd46aabe|h=tvqjxeldhqqark5dgjaj3nxvthgf75l5|/
- java jre 安装方法 FOR FEDORE
- linux-fedore、JDK的安装
- java jdk jre安装
- 安装OpenCV笔记 Fedore linux core5
- (二)安装fedore 20(Gnome) 常用软件
- Create Vlan for Interface for Ubuntu and Fedore
- Java 的安装,公用JRE与私有JRE,编辑器
- java安装jdk时不能安装jre
- 一种不安装JRE环境即可运行Java程序的方法
- 一种不安装JRE环境即可运行Java应用程序的方法
- 一种不安装JRE环境即可运行Java应用程序的方法
- 【转载】一种不安装JRE环境即可运行Java应用程序的方法
- 在debian上安装和配置Oracle JAVA 8(JDK/JRE)方法
- 编译安装busybox过程与结果?(Fedore 9.0)
- 刚安装了java的JRE。
- ubuntu10.10 sun java/jre安装
- Ubuntu 12.04 安装 jre 和 java sdk
- Ubuntu下eclipse和Java JRE安装
- 如何将MFC程序改为UNICODE类型
- Linux下安装CVS服务器
- Linux内核中 如何动态替换系统调用函数
- matlab randint函数
- webseal 单点登录的一个问题
- java jre 安装方法 FOR FEDORE
- [Excel之PowerPivot ]PowerPivot简介和安装
- 用C语言实现Ping程序功能(转)
- Write Caching
- SQL附加数据库后,数据库是只读的
- 汇编一日一学(6)--顺序显示小写字母的前导后置/21h中断
- 汇编一日一学(6)--顺序显示小写字母的前导后置/21h中断
- Silverlight图片相对路径的设置
- Flash 与性能实验笔记:压K数