This discussion is archived
1 Reply Latest reply: Oct 23, 2013 12:01 AM by 892235 RSS

APPLICATION_TEMPLATE.JNLP doesn't work with java/j2se tags in 7u45?  Crashes VM

892235 Newbie
Currently Being Moderated

I'm running 7u45 and decided to try and implement the APPLICATION_TEMPLATE.JNLP as the number of warnings were starting to be bothersome.

However, I found that I can no longer specify the java or j2se tags as part of resources.  If I do, once I pass the security warning the VM crashes.  This applies to every computer we've tested on (10+).

 

This Works (with matching runtime jnlp):

<?xml version="1.0" encoding="UTF-8" ?>

<jnlp spec="6.0.10+" version="*" href="my.jnlp" codebase="*">

  <information>

    <title>*</title>

    <vendor>Me</vendor>

    <homepage>*</homepage>

    <description>*</description>

    <icon href="*" />

    <icon href="*" kind="splash" />

    <icon href="*" kind="shortcut" />

  </information>

  <security>

    <all-permissions />

  </security>

  <update check="always" />

  <resources>

    <jar href="my.jar" main="true" version="*"/>

    <property name="jnlp.versionEnabled" value="true"/>

  </resources>

  <application-desc main-class="MyClass" name="*" >

    <argument>*</argument>

  </application-desc>

</jnlp>

 

------------------

While this crashes the VM  (note the additional resources/java tag):

 

<?xml version="1.0" encoding="UTF-8" ?>

<jnlp spec="6.0.10+" version="*" href="my.jnlp" codebase="*">

  <information>

    <title>*</title>

    <vendor>Me</vendor>

    <homepage>*</homepage>

    <description>*</description>

    <icon href="*" />

    <icon href="*" kind="splash" />

    <icon href="*" kind="shortcut" />

  </information>

  <security>

    <all-permissions />

  </security>

  <update check="always" />

  <resources>

    <java version="1.7+" java-vm-args="-Xnosplash -Xms256m" />

    <jar href="my.jar" main="true" version="*"/>

    <property name="jnlp.versionEnabled" value="true"/>

  </resources>

  <application-desc main-class="MyClass" name="*" >

    <argument>*</argument>

  </application-desc>

</jnlp>

 

Is this not supported when using APPLICATION_TEMPLATE.JNLP?  Can't find any documentation on which tags are/aren't supported as the spec is pretty vague on which ones may be backlisted.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points