Dima O
Dima O

Reputation: 83

use a specific jre for an applet

after having a problem with the java 7u25 update with streaming video in an applet, I'd like to ask if it's possible to use a jre that is located in the file system and not as browser's plugin, the user will get it one time to a specific folder and then keep using it with the applet. Is it realistic? will it interfere with the browser's java plugin?

Upvotes: 1

Views: 390

Answers (3)

Lonzak
Lonzak

Reputation: 9816

Besides to what the other said (is this wise?), there is the possibility to specify an exact java version in the JNLP file (if your are using one with your applet). Have a look at the java (or j2se) element. There you can specify the exact java version and if it is not installed you can specify a downloadlink (href) from where that version will be downloaded and installed from. The documentation states:

Exact product versions (implementation versions) may also be specified. by including the href attribute. For example, 1.3.1_07, 1.4.2, or 1.5.0-beta2 by Sun Microsystems, Inc. For example, <j2se version="1.4.2" href="http://java.sun.com/products/autodl/j2se"/ or <j2se version="1.4.2_04" href="http://java.sun.com/products/autodl/j2se"/>

Some more information is available here.

However be aware, that this mechanism is not unproblematic as these posts indicate: 1,2.

Upvotes: 0

Suresh Atta
Suresh Atta

Reputation: 122026

Applets are, typically donwloaded and run in the web browser,So Not possible with out browser java plugin(JRE).

An overview by Oracle the how they work with browsers

Upvotes: 1

Andrew Thompson
Andrew Thompson

Reputation: 168845

Is it realistic?

Not really. It used to be that an applet deployed using Java Web Start could be launched in any JRE version installed on the user's system, but security updates have Oracle thinking the user should now only be using the latest JRE.

Upvotes: 1

Related Questions