This discussion is archived
0 Replies Latest reply: Nov 1, 2013 10:36 AM by bcavalcanti RSS

How to get Resources declared in .jnlp ?

bcavalcanti Newbie
Currently Being Moderated

Hi guys,

 

I want to install resources, on local machine, before my main application runs.

 

I'm trying to do this using "installer-desc" as a extension of my main jnlp file. As below.

 

My main jnlp:

 

<jnlp spec="1.0+" 
      codebase=file:\\localhost\test > 
    <information>
        <title>Title</title>
        <vendor>Vendor</vendor>
        <offline-allowed/>   
    </information>
    
    <security>
        <all-permissions />
    </security>
    
    <resources>
       <j2se version="1.6+" java-vm-args="-Xms128m -Xmx512m">
            <property name="key" value="value"/> 
        </j2se>
        <extension href="installer.jnlp" />     
        <jar href="pie.jar" main="true" />
        
    </resources>
    <application-desc />
</jnlp>

 

My installer.jnlp

<jnlp spec="1.0"   
      href="installer.jnlp" 
      codebase=file:\\localhost\test>
  <information>
     <title>Title</title>
     <vendor>Vendor</vendor>    
  </information>
  
   <security>
        <all-permissions />
    </security>
  
  <resources>
    <j2se version="1.6+" />
    <jar href="jarIWant.jar" />
    <jar href="install.jar" main="true" />
  </resources>
  <installer-desc main-class="InstallClass" />
</jnlp>

 

My question is, how i can get access to jarIWant.jar on InstallClass  ?

 

Thanks in advance

 

Bruno Dantas

Legend

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