Friday, October 30, 2015

Java Applets Don't Run In Chrome Browser


Have you noticed that some web pages have previously dynamic sections that no longer work in Chrome?

Have you seen a message stating, "Chrome no longer supports NPAPI"?

That's because the Chrome Browser no longer supports java applets... and for good reason: Running java applets in your Chrome browser is a security risk.

Options for the Die Hards

If you are determined to run that web page with that non-functional java applet, regardless of it's security implications, you have options:

Run Java Applets By

  • Using a browser that still supports NPAPI (MS IE, Safari, Firefox)
  • Use the IE Tab plugin for Chrome (for Windows platform)
  • Convert Java Applet to a Web Start application (if you can influence development)

NPAPI

Google's Chrome version 45 (scheduled for release in September 2015) drops support for NPAPI, impacting plugins for Silverlight, Java, Facebook Video and other similar NPAPI based plugins.

Netscape Plugin Application Programming Interface (NPAPI) is an application programming interface (API) that allow plug-ins (more specifically, browser extensions) to be developed for web browsers.

It was first developed for Netscape browsers, starting in 1995 with Netscape Navigator 2.0, but was subsequently adopted by other browsers.

In NPAPI architecture, a plugin declares content types (e.g. "audio/mp3") it can handle. When the browser encounters a content type it cannot handle natively, it loads the appropriate plugin, sets aside space within the browser context for the plugin to render and then streams data to it. The plugin is responsible for rendering the data. The plugin runs in-place within the page, as opposed to older browsers that had to launch an external application to handle unknown content types.

NPAPI requires each plugin to implement and expose approximately 15 functions for initializing, creating, destroying and positioning plugin content. NPAPI also supports scripting, printing, full-screen plugins, windowless plugins and content streaming.

Full privileges are only granted by default to chrome scripts.

Mozilla

Mozilla is deprecating all plugins.

"Plugins are now a legacy technology. They are not available on most mobile devices. Mozilla encourages website developers to avoid using plugins wherever possible. If there are plugin features which are not available in the web platform, we encourage developers to post their use cases to mozilla.dev.platform project list, so that Mozilla can prioritize web platform work to make those use cases possible."

Note that plugins are shared libraries that users can install to display content that the application itself can't display natively. For example, the Adobe Reader plugin lets the user open PDF files directly inside the browser, and the QuickTime and RealPlayer plugins are used to play special format videos in a web page.

Furthermore...


If you developed a java applet for a web page and deployed it to production, you might want to keep fact that off your resume.

Running java in a web browser was never a good idea.

The java applet is executed within a bloated Java Virtual Machine (JVM) in a process separate from the web browser itself. The java plugin was designed to run the java applets in a "secure sandbox" in the browser. This would supposedly prevent any java applet from presenting security risks to your computer.

The reality is that there have been so many vulnerabilities that allow nefarious Java applet code to escape the sandbox and exploit your system that Oracle has basically given up.

Java will no longer run unsigned applets, unless you go to the trouble of reducing your browser's default security settings. Running unsigned applets shouldn’t be a problem if the security sandbox were trustworthy in the first place. Right?

Furthermore, the graphics generated from Java apps, IMHO, never were crisp and/or visually appealing.

Cisco’s 2014 annual security report claims that 91 percent of all web attacks in 2013 targeted Java.

Running java applets in a browser will be insecure, slow, have high resource requirements and look sub-par; So, don't do it.

References



This work is licensed under the Creative Commons Attribution 3.0 Unported License.

51 comments:

  1. > Netscape Plugin Application Programming Interface (NPAPI) is an application programming interface (API) that allow plug-ins (more specifically, browser extensions)

    Browser *plugins* and browser *extensions* are very different things. NPAPI is used to write plugins, not extensions.

    ReplyDelete
  2. Thank you for your feedback. You might want to take that up with the NPAPI wiki author at https://en.wikipedia.org/wiki/NPAPI

    ReplyDelete
  3. You made some good points there. I did a search on the topic and found most people will agree with your blog. Java Training in Chennai | Selenium Training in Chennai | Data Science Training in Chennai | R Programming Online Training in Chennai

    ReplyDelete
  4. Pretty very amazing information! I read our blog all blog categories article very useful.I bookmarked to our info.Thanks for the amazing information.Java Training in Chennai | Java Training Institute in Chennai

    ReplyDelete
  5. Really amazing post.It is very useful for all the user to gather the information and develope their knowledge.Thanks for sharing.keep sharing more blogs. want to build your website.

    White Label Website Builder

    ReplyDelete
  6. Hi,

    Thanks for sharing a very interesting article about Java Applets Don't Run In Chrome Browser. This is very useful information for online blog review readers. Keep it up such a nice posting like this.

    Regards,
    WondersMind,
    Web Design Company Bangalore

    ReplyDelete

  7. Cool stuff you have and you keep overhaul every one of us.

    Data Science Course

    ReplyDelete
  8. Thanks for the informative and helpful post, obviously in your blog everything is good..

    Data Science Training

    ReplyDelete
  9. Great advice and very easy to understand. It will definitely come in handy when I get the chance to start my blog.

    Data Science Courses

    ReplyDelete
  10. Hello! I just want to give a big thank you for the great information you have here in this post. I will probably come back to your blog soon for more information!

    Data Science Certification

    ReplyDelete
  11. It would also motivate almost everyone to save this webpage for their favorite helper to help get the look published.

    Business Analytics Course in Bangalore

    ReplyDelete
  12. I want to thank you for your time in this wonderful read! I really appreciate every moment and I put you in your favorites to see new things on your blog, a must-have blog!

    Data Analytics Course in Bangalore

    ReplyDelete
  13. I have to search sites with relevant information ,This is a
    wonderful blog,These type of blog keeps the users interest in
    the website, i am impressed. thank you.
    Data Science Course in Bangalore

    ReplyDelete
  14. Great blog with excellent information, found very useful thanks for sharing. looking forward for next blog update.

    typeerror nonetype object is not subscriptable

    ReplyDelete
  15. Truly incredible blog found to be very impressive due to which the learners who ever go through it will try to explore themselves with the content to develop the skills to an extreme level. Eventually, thanking the blogger to come up with such an phenomenal content. Hope you aarrive with the similar content in future as well.

    Digital Marketing training

    ReplyDelete
  16. Tremendous blog quite easy to grasp the subject since the content is very simple to understand. Obviously, this helps the participants to engage themselves in to the subject without much difficulty. Hope you further educate the readers in the same manner and keep sharing the content as always you do.

    Data Science certification in Raipur

    ReplyDelete
  17. Top quality article with very informative information found very useful thanks for sharing looking forward next blog.
    Data Analytics Course Online

    ReplyDelete
  18. Good. I am really impressed with your writing talents and also with the layout on your weblog. Appreciate, Is this a paid subject matter or did you customize it yourself? Either way keep up the nice quality writing, it is rare to peer a nice weblog like this one nowadays. Thank you, check also virtual edge and event seo

    ReplyDelete
  19. I like this post and there is obviously a lot to know about this. I think you made some good points in Features also i figure that they having a great time to peruse this post. They might take a decent site to make an information, thanks for sharing it to me Keep working, great job!
    Braces in Bangalore

    ReplyDelete

  20. This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works ExcelR Data Analytics Course

    ReplyDelete
  21. The Data Scientist Certification Programme is one of the most comprehensive Data Science Course in Bangalore. It is specially designed to suit both data professionals and beginners who want to make a career in this fast-growing profession. Over 6 months, students will learn key techniques such as Statistical Analysis, Regression Analysis, Data Mining, Machine Learning, Forecasting and Text Mining, and tools such as Python and R Programming.

    ReplyDelete
  22. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it!
    Data Science courses

    ReplyDelete

  23. I see some amazingly important and kept up to length of your strength searching for in your on the site
    Best Digital Marketing Courses in Hyderabad

    ReplyDelete
  24. i am glad to discover this page : i have to thank you for the time i spent on this especially great reading !! i really liked each part and also bookmarked you for new information on your site.
    data science training in bangalore

    ReplyDelete
  25. Superb Information, I really appreciated it, This is fine to read and valuable pro potential, I really bookmark it, pro broaden read. Appreciation pro sharing. I like it.
    data scientist training and placement

    ReplyDelete
  26. Very awesome!!! When I searched for this I found this website at the top of all blogs in search engines.

    digital marketing courses in hyderabad with placement

    ReplyDelete
  27. your blog everyday and try to learn something from your blog. Thank you and I'm waiting for your new post.
    best data science institute in hyderabad

    ReplyDelete
  28. Very nice blog and articles. I am really very happy to visit your blog. Now I am finding which I actually want. I check your blog everyday and try to learn something from your blog. Thank you and I'm waiting for your new post.

    Best Data Science courses in Hyderabad

    ReplyDelete
  29. I have expressed a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon…
    Best Data Science courses in Hyderabad

    ReplyDelete
  30. Impressive. Your story always brings hope and new energy. Keep up the good work.
    Best Data Science courses in Hyderabad

    ReplyDelete
  31. Informative blog post,
    Digital Marketing Course in Hyderabad Digital Marketing is right now the most stable job you could have. There are many openings for Digital Marketers around the globe. Hence we suggest you to attend our digital marketing course in Hyderabad to acquire skills that a Digital Marketer needs.

    ReplyDelete
  32. I am genuinely thankful to the holder of this web page who has shared this wonderful paragraph at at this place
    Best Data Science courses in Hyderabad

    ReplyDelete
  33. You actually make it seem like it's really easy with your acting, but I think it's something I think I would never understand. I find that too complicated and extremely broad. I look forward to your next message. I'll try to figure it out! You actually make it seem like it's really easy with your acting, but I think it's something I think I would never understand. I find that too complicated and extremely broad. I look forward to your next message. I'll try to figure it out!
    Digital Marketing Course in Bangalore

    ReplyDelete
  34. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
    digital marketing courses in hyderabad with placement

    ReplyDelete
  35. Content Pruning SEO: Meaning, Benefits – Complete Guide [2020]

    ReplyDelete
  36. Hey there
    Attractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts.

    Best Software Development company
    Mobile app development company
    Best web development company

    ReplyDelete
  37. Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best!
    aws certification cost hyderabad

    ReplyDelete
  38. I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You.
    data science training in hyderabad

    ReplyDelete
  39. Very good message. I came across your blog and wanted to tell you that I really enjoyed reading your articles.

    Data Science Training in Nashik

    ReplyDelete
  40. Interesting Article. Hoping that you will continue posting an article having a useful information. MS-720: Microsoft Teams Voice Engineer

    ReplyDelete
  41. I finally found a great article here. Quality postings are essential to get visitors to visit the website, that's what this website offers.
    Business Analytics Course in Jalandhar

    ReplyDelete
  42. Amazing knowledge and I like to share this kind of information with my friends and hope they like it they why I do
    full stack development course

    ReplyDelete
  43. Get a comprehensive overview of Data Science and learn all the essential skills including collecting, modeling, and interpreting data. Register with Data Science institute Bangalore and build a strong foundation for a career where you will be involved in uncovering valuable information for your organization. Learn Python, Machine Learning, Big Data, Deep Learning, and Analytics to take center stage in Data Science.

    Data Science in Bangalore

    ReplyDelete
  44. Fast forward your career with the best Data Analyst Course offered by 360DigiTMG. Get trained by expert trainers with placement assistance.

    Data Analytics Course in Calicut

    ReplyDelete