User123456
User123456

Reputation: 189

An application would like access to an out-of-date version of Java: warning while invoking JNLP file

I am seeing a warning message whenever i am trying to invoke jnlp file from my website.

Message

enter image description here

I have security attribute inside JNLP file is set to all permissions. I have signed this jar as well.

JNLP file:

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/" href="Timesheet.jnlp">

     <information>
          <title> Foo</title>
          <vendor>bla</vendor>
          <homepage href="http://localhost:8080/" />
          <description>Timesheet JNLP Application</description>
     </information>

     <security>
          <all-permissions/>
     </security>

     <resources>
          <j2se version="1.6*" />
          <jar href="Timesheet.jar" />
     </resources>

     <application-desc main-class="com.data.JNLPApp" />
</jnlp>

Upvotes: 1

Views: 616

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168795

<j2se version="1.6*" />

This is asking for any version of 1.6, which is two major releases out of date. Oracle has come to a point where they don't wish to allow older versions of Java to be used for Java apps., because they might have security bugs.

To get around that, change that to:

<j2se version="1.6+" />

That specifies any of 1.6, 1.7, 1.8 ..or whatever later version of Java might be installed on the user machine.

Upvotes: 1

Related Questions