您的位置:首页 > 编程语言 > Java开发

ubuntu中chrome开启java插件

2013-05-26 18:28 330 查看
ubuntu中的chrome默认是没有java插件的,需要自己从网上下载。

首先从网上下载jdk或者jre:http://www.oracle.com/technetwork/java/javase/downloads/index.html

下载后解压,然后按照下图的命令进行插件的配置:



配置完成后在chrome刷新就可以显示java了。

参考:http://www.wikihow.com/Enable-Oracle-Java-in-Your-Web-Browsers-on-Ubuntu-Linux

Type/Copy/Paste: sudo mkdir /opt/google/chrome/plugins

this will create a directory called /opt/google/chrome/plugins

Type/Paste/Copy: cd /opt/google/chrome/plugins

this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link

Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_21/lib/i386/libnpjp2.so

this will create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to your Google Chrome web browser
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: