Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. 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. 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).

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/

like image 359
John Doe Avatar asked Aug 02 '12 14:08

John Doe


People also ask

Can you run Java applets in Chrome?

Chrome no longer supports the technology that is required to run Java Applets in the browser. Java Applets rely on the cross-platform plugin architecture NPAPI. This has been supported by Chrome (and other browsers) for over a decade, until Google released Chrome version 45 in July 2015.


2 Answers

Current Chrome version do not requires more this option.

To install java plugin for browsers, if you're using packaged java, install one of the following packages according you java version:

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.

like image 81
Rael Gugelmin Cunha Avatar answered Oct 11 '22 19:10

Rael Gugelmin Cunha


On Ubuntu 13.04 x64 ,

sudo apt-get install icedtea-7-plugin

is working great. Thank you.

like image 32
mdalacu Avatar answered Oct 11 '22 20:10

mdalacu