Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to install Java Plugin to these browsers manually ? I downloaded JRE from Oracle Site, run it in terminal. Now, what I should do ?. I want to do it manually because, I want to be up-date with recent Java version.

share|improve this question

migrated from stackoverflow.com Feb 16 '11 at 22:24

This question came from our site for professional and enthusiast programmers.

    
This is a question for unix.stackexchange.com/questions –  Matten Feb 16 '11 at 19:42
    
@Matten: Or would that be SuperUser? –  Powerlord Feb 16 '11 at 21:48
add comment

8 Answers 8

For ubuntu:

sudo ln -s /path/to/java/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so

works in google chrome beta.

share|improve this answer
add comment

For Chromium, add this symlink:

sudo ln -s /path/to/java/jre/lib/amd64/libnpjp2.so /usr/lib/chromium-browser/plugins/libnpjp2.so

For Firefox, add this symlink:

sudo ln -s  /path/to/java/jre/lib/amd64/libnpjp2.so  /usr/lib/firefox-addons/plugins/libnpjp2.so

replace the /path/to/java/jre with the actual path from your installation.

share|improve this answer
1  
Can you give the option for chrome browser? –  Anwar Shah Mar 10 '13 at 4:48
add comment

I copied and updated this answer from @Casey Watson since I can't edit or comment yet.

For chromium-browser 25, add this symlink:

sudo ln -s /path/to/java/jre/lib/amd64/libnpjp2.so /usr/lib/chromium-browser/plugins/libnpjp2.so

For Google chrome 27, might need to create the plugins dir:

mkdir /opt/google/chrome/plugins

then add this symlink:

sudo ln -s /path/to/java/jre/lib/amd64/libnpjp2.so /opt/google/chrome/plugins/libnpjp2.so

For Firefox 21, add this symlink:

sudo ln -s  /path/to/java/jre/lib/amd64/libnpjp2.so  /usr/lib/firefox-addons/plugins/libnpjp2.so

replace the /path/to/java/jre with the actual path from your installation.

share|improve this answer
add comment

I think this problem is quite common. This thread may have the answers that you are looking for. Let me know if it helps you out, if not we can discuss further.

share|improve this answer
add comment

You may have succeed in enabling the java plugin in firefox by doing something like:

sudo ln -s  /path/to/java/jre/lib/amd64/libnpjp2.so  /usr/lib/firefox-addons/plugins/libnpjp2.so

It appears that chromium does not look in the /usr/lib/firefox-addons/plugins/ directory, It only checks the ~/.mozilla/plugins directory. Therefore to make it work in chromium you also need to do:

cd ~/.mozilla/plugins
sudo ln -s /usr/lib/firefox-addons/plugins/libnpjp2.so
share|improve this answer
add comment

The information at:

http://ubuntupop.blogspot.com.au/2012/10/install-java-runtime-environment-on.html

fixed my problems.

share|improve this answer
    
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Eric Carvalho Nov 8 '13 at 0:14
add comment

open up your "synaptic package manager" go to settings/repositories then other software,click on the canonical partners, then close and hit the reload button now type "sun java6 plugin" mark it for installation and now hit apply. if you have not done this already you may want to install the "ubuntu restricted extras" but this will install openJDK if you dont want openJDK you can remove openjdk-6-jre-lib by marking for removal and hit apply.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.