Sunday, March 23, 2014

Enabling the Java Plugin for Chrome in Mint

So, you've gone to the Oracle web site and installed Java. But when you visit a website that requires Java, you still get a message that directs you back to the Oracle web site to install Java. The problem is that your browser doesn't know that you've installed Java, so you need to tell it where to look.

Both Ubuntu and Mint use Firefox as a default browser.  If we tell Firefox where to look, Chrome will also know. So we actually get a 2 for 1 deal.

You'll need to know where Firefox is installed, as well as Java. On my machine, these are:
  • Firefox - /usr/lib/mozilla
  • Java - /usr/local/jdk1.7.0_45/jre
If you've only installed the java runtime, it's probably in /usr/local/jre1.7.0_45. Your folder structure may be for a different version. If you're not sure where Java is, you can open a terminal window and enter:

$ sudo find / -name libnpjp2.so

Armed with this information, open a terminal window, and go to the Firefox folder:

$ cd "/usr/lib/mozilla/plugins"

Now,  create a symbolic link in that folder that points back to the plugin:

$ sudo ln -s "/usr/local/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so"

Now, you can restart your browser, and enable the plugin:

  • Firefox - Select Tools > Add-ons (Ctrl+Shift+A) from the Menu Bar.  Then select the Plugins panel, and enable Java(TM) Plug-in
  • Chrome - type chrome://plugins in the Navigation Bar to enable the plugin.

Now goto http://www.java.com/en/download/installed.jsp to verify the plugin is working.

I've recently upgraded from Xubuntu to Linux Mint. What is nice is that since Mint is based on Ubuntu, many of the tricks and tips that I've learned for Ubuntu also work on Mint. This tip that worked on Xubuntu 11.10 with Java 1.6, still works on Mint 16 Cinnamon with Java 1.7.

26 comments:

  1. Wonderful post!!Java is written once and used anywhere, means general it is platform independent so it can run any platform like in android, linux, etc..,.It Is general purpose programming language. It was Origin by two programming language c and c++(c with classes).Thank you for sharing your article.
    Regards,
    java training in vadapalani | JAVA Training in Chennai

    ReplyDelete
    Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.

      Delete
  2. I have read your blog its very attractive and impressive. I like it your blog.


    JavaEE Training in Chennai JavaEE Training in Chennai

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai Java 8 Training in Chennai

    ReplyDelete
  3. I always feel interested in Java GUI Swing programming, and it will be a great pleasure to find a Java Forum that can help learning its basics.

    ReplyDelete
  4. Nice content with valuable information. Thanks for sharing.
    Java Training institute in Velachery

    ReplyDelete
  5. Great post, Thanks for sharing this useful and valuable information.
    IT Job Training in Chennai

    ReplyDelete
  6. The blog gave an idea an idea to enable java plugin with chrome. Thanks for sharing the information
    Android Training in Chennai

    ReplyDelete
  7. Really great post. I'm a Chrome user, I have facing add problem at browsing time. How can i solve my problem?
    Would you kindly tell me what is the best chrome extensions for blocking add. Thanks

    ReplyDelete
  8. Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training

    Hibernate Online Training Hibernate Online Training Spring Online Training Spring Online Training Spring Batch Training Online Spring Batch Training Online

    ReplyDelete
  9. Programming on Windows ordinarily implied the program would not take a shot at a Mac. This is not valid with Java. Java innovation is both a programming dialect and a stage.
    web design lessons

    ReplyDelete
  10. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. Java Training in Chennai

    ReplyDelete
  11. As these two languages began to get recognition, more and more games began to be made using them, with the result being that gamers were demanding that any new computer they bought had the capabilities to play them.
    StartPoint

    ReplyDelete
  12. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    Java Training in Chennai

    Java Training in Bangalore

    ReplyDelete
  13. Thanks for your marvelous posting! It is very useful and good. Come on. I want to introduce the best aso services for you, I try it and I feel it is so good to rank app to top in app store search results, have you ever heard it?

    ReplyDelete
  14. Wow, not bad, thanks for your efforts to explain this topic for regular people like me, but unfortunately I understood nothing from your post:( Then I decided to look for another similar articles, and accidentally found out this amazing service that totally explained me everything about how to compile java on linux https://explainjava.com/compile-run-java-linux/ so now I am very good expert in this theme.

    ReplyDelete
  15. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.


    java Training in Bangalore

    ReplyDelete
  16. That is very interesting; you are a very skilled blogger. I have shared your website in my social networks! A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article...
    Java Training in Chennai
    Java Training Institute in Chennai


    ReplyDelete
  17. Thanks a lot very much for the high quality and results-oriented help.
    I won’t think twice to endorse your blog post to anybody who wants
    and needs support about this area.

    java training in chennai

    ReplyDelete
  18. It’s amazing in support of me to truly have a web site that is valuable meant for my knowledge.

    ReplyDelete
  19. Along with S3 Press Maestro's built-in HTML5 media player, your site's site visitors have access to press content material upon any kind of device or even internet browser.WordPress video plugin

    ReplyDelete
  20. I think this is the best article today. Thanks for taking your own time to discuss this topic, I feel happy about that curiosity has increased to learn more about this topic. Keep sharing your information regularly for my future reference.
    Java Courses in chennai

    ReplyDelete
  21. I’ve been browsing on-line greater than three hours nowadays, yet I by no means discovered any attention-grabbing article like yours. It is beautiful price sufficient for me. In my view, if all webmasters and bloggers made just right content as you did, the web will be a lot more useful than ever before. php blogging platform

    ReplyDelete
  22. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance the knowledge. Excellent post.

    java training in bangalore

    aws training in bangalore

    ReplyDelete
  23. You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us

    java training in chennai

    ReplyDelete