Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Auto-detect Java Plugin support in the browser.

3297716Aug 17 2016 — edited Aug 17 2016

Background:

We have been using deployJava script in our code to verify if the required JRE version is existing on the system.

If it does we launch in the web browser via Java browser plugin. If it doesn’t, we download the jnlp file to launch as an application.

With the new change that the browser support for the Java Plugin is getting deprecated, we wanted to automatically verify if the browser supports Java Plug-in.

Only if the browser supports the Java plug-in, we provide the option to launch in the browser, else we would always download the jnlp.

Queries:

Is there any way we can auto detect if Java plugin support is available in the browser?

Is  there a plan to update the deployJava script to handle this scenario?

Tried Solutions:

We are trying to use navigator.javaenabled() to auto-detect if Java plugin support is available in the browser.

However, this seems to be having some issues in Chrome.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 14 2016
Added on Aug 17 2016
0 comments
770 views