·ChinaUnix首页 ·论坛 ·博客 
Linux首页 | Linux新闻 | Linux论坛 | Linux文档 | Linux下载 | Linux博客 | Linux搜索 | 开源项目孵化平台 | 《开源时代》
新手入门 | 安装启动 | 管理员指南 | 开发手册 | 桌面应用 | 程序开发 | 数据库 | 网络技术| CentOS | Fedora | MySQL | Apache | Ubuntu | Gentoo| OSCON08
  Linux时代 >> 技术文档 >> 程序开发
 
如何在firefox里面设置java环境
来源: ChinaUnix博客  日期: 2008.12.29 15:30 (共有条评论) 我要评论
 
为了能使用firefox配置ha,所以要设置firefox里面的环境变量,询问了牛参考了java文档才算搞定,总结如下;
系统环境:everest linux (NOE) 0.5 kernel 2.6.23.1-3  
         jre 1.5.0
[root@young ha41]# rpm -ivh jre-1_5_0_11-linux-i586.rpm   
[root@young plugins]# cd /usr/lib/firefox/plugins/
[root@young plugins]# ln -s /usr/java/jre1.5.0_11/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so      
配置完成。
参考文档:http://plugindoc.mozdev.org/faqs/java.html
Linux
On Linux, Mozilla requires JRE 1.4.2 or later.
Mozilla 1.4 and later, and Mozilla Firefox, are compiled with gcc 3.x. A gcc 3.x compatible version of the Java plugin must be used. JRE 1.4.2 and later contain a compatible plugin.
If you installed the Java Runtime Environment 5.0 Update 9, this plugin is /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so - and to install it for Mozilla (including Mozilla Firefox), do the following:
  • Open a terminal
  • Change to your Mozilla (or Mozilla Firefox) plugins directory
  • Issue the following command: ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so

    If you install your JRE in a different way (self extracting package, debian package, etc), libjavaplugin_oji.so will quite likely be in a different location. Do not just blindly use the command listed above!

    In JRE 1.4.2, this file was in plugin/i386/ns610-gcc32

    Always make a symbolic link, as shown above, instead of copying the plugin. If you copy the plugin, your browser will crash every time you open a page containing a Java applet. You have been warned!
    If you are using an older Linux distribution, you may need to install the gcc3 support libraries, as the gcc 3.2 version of the Java plugin requires libgcc_s.so.1 to operate. You may be able to find packages using
    Google
    .
    If you are using an old or unofficial build of Mozilla (1.4a or later) or Mozilla Firefox, you can check which compiler was used by entering about:buildconfig in the location bar and pressing enter. You will see a line such as "gcc version 3.3.2", which will show the compiler that was used. If gcc2.9x was used, you need to use the ns7-gcc29 or ns610 plugin, not the ns7 or ns610-gcc32 plugin.


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/82278/showart_1758871.html
  •   发表评论 查看评论(共有条评论)
     
     


    最新资讯更多>> 
    · 金山卫士开源计划首周源码下载..
    · 谷歌劝说诺基亚采用Android操作..
    · 11月份Linux市场占有率升至5%
    · Apache 基金会确认退出 JCP 执..
    · Chrome 10 新功能探秘:新增GP..
    · 金山宣布开源其安全软件
    · 开源FTP服务器ProFTPD发现后门
    · 女黑客在开源会议上抱受骚扰
    · 21款值得关注的Linux游戏
    · 马化腾:腾讯半年后彻底转型,..
    论坛热点更多>> 
    · Linux系统移植从零开始!参与..
    · 学习linux的意义在哪里
    · 使用netfilter在哪能获取到原..
    · 哥纠结了
    · 一个在线读开源代码的工具,..
    · 为什么我的目录下没有.cshrc..
    · 初学linux从哪里开始
    · linux 系统无法上网
    · 新手安装UCenter 时总是出错..
    · cacti添加主机显示的状态都是..
    文档更新更多>> 
    · 菜鸟入门三星ARM11嵌入式系统,是..
    · 寻redhat 5.3 的中文手册 for ia64
    · 请问redhat 5.3 企业版的用户手册..
    · LINUX与UNIX SHELL编程指南(中文)
    · 一些基本用户管理以及基本安装方法
    · 菜鸟学习linux笔记与练习-----第..
    · 菜鸟学习linux笔记与练习-----第..
    · 服务器配置:Squid配置详解
    · linux下u盘使用
    · ubuntu dynamips 绑定网卡到虚拟机
     
    关于我们 | 联系方式 | 广告合作 | 诚聘英才 | 网站地图 | 友情链接 | 免费注册

    Copyright © 2001-2009 ChinaUnix.net All Rights Reserved

    感谢所有关心和支持过ChinaUnix的朋友们

    京ICP证:060528号