[英]Installing Java plugin for Chrome in Ubuntu
I do have JDK, everything works fine in Ubuntu, I mean IDE, some apps, I'm able to develop and run projects, but I got a message in Chrome: Java(TM) is required to display this content
我有JDK,在Ubuntu中一切正常,我的意思是IDE,一些应用程序,我能够开发和运行项目,但我在Chrome中收到一条消息:需要Java(TM) is required to display this content
I need to run this applet. 我需要运行这个小程序。 How do I do that? 我怎么做? I need to run it in Chrome because of the GWT plugin installed here. 由于此处安装了GWT插件,我需要在Chrome中运行它。 Should I add some parameters in a script, that would run it? 我应该在脚本中添加一些参数吗? Or is there another way? 或者还有另一种方式吗? I saw links that proposed to install Java plugin for Chrome in Windows and Mac, but not Linux. 我看到了建议在Windows和Mac中为Chrome安装Java插件的链接,但不是Linux。 Thanks in addvance. 谢谢你的补充。
I made a link to /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnpt.so
in /opt/google/chrome/plugins
, it didn't help (well, it's not libnpjp2.so
, which is recommended for this case, but it's the closest one I saw there). 我在/opt/google/chrome/plugins
建立了/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnpt.so
的链接,它没有帮助(好吧,它不是libnpjp2.so
,这是推荐用于这种情况,但它是我在那里看到的最接近的那个)。
Update : I found libnpjp2.so
on my machine, the following command helped: sudo ln -s /usr/lib/jvm/jdk1.7.0_03/jre/lib/amd64/libnpjp2.so /opt/google/chrome/plugins/
更新 :我在我的机器上找到libnpjp2.so
,以下命令帮助: sudo ln -s /usr/lib/jvm/jdk1.7.0_03/jre/lib/amd64/libnpjp2.so /opt/google/chrome/plugins/
Current Chrome version do not requires more this option. 目前的Chrome版本不需要更多此选项。
To install java plugin for browsers , if you're using packaged java, install one of the following packages according you java version: 要为浏览器安装java插件 ,如果您使用的是打包的java,请根据您的java版本安装以下软件包之一:
sudo apt-get install icedtea6-plugin
or 要么
sudo apt-get install icedtea-7-plugin
To check you version, open a terminal (command line) and type: 要检查您的版本,请打开终端(命令行)并键入:
java -version
Java 1.6 will require icedtea6-plugin
, Java 1.7 icedtea-7-plugin
. Java 1.6将需要icedtea6-plugin
,Java 1.7 icedtea-7-plugin
。
On Ubuntu 13.04 x64 , 在Ubuntu 13.04 x64上,
sudo apt-get install icedtea-7-plugin
is working great. 工作得很好。 Thank you. 谢谢。
The best solution I found, (none of these suggestions worked for me), is as followings: First install Icedtead pluging by: 我找到的最佳解决方案(这些建议都不适用于我)如下:首先安装Icedtead插入:
Then in your chrome browser go to: 然后在您的Chrome浏览器中转到:
From a previous question : 从上一个问题 :
Yes, add --enable-plugins to your chrome command. 是的,在chrome命令中添加--enable-plugins。 It's currently not considered stable, but it works for me. 它目前不被认为是稳定的,但它对我有用。
Actually, it seems to just work without that. 实际上,它似乎只是在没有它的情况下工作。 Have you tried it? 你试过吗? You can find a test applet here. 你可以在这里找到一个测试小程序。 Presumably you'll need Sun's Java installed. 大概你需要安装Sun的Java。
UPDATE: see the link for further details. 更新:请参阅链接以获取更多详细信息。 Lots of helpful answers. 很多有用的答案。
没有办法运行java插件,因为chrome停止支持http://en.wikipedia.org/wiki/NPAPI插件
仍然适用于Opera 12.16和Ubuntu 14.04,但是需要安装两个Icedtea以获得applet工作
sudo apt-get install icedtea-7-plugin icedtea-6-plugin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.