2012-04-05 62 views
0
<?xml version="1.0" encoding="UTF-8"?> 
<jnlp spec="1.0+" 
     codebase="**http://10.177.213.120:8080/Sample/**" href="sample-webstart.jnlp"> 
    <information> 
     <title>Sample Screen</title> 
     <vendor>John Doe</vendor> 
    </information> 
    <resources> 
     <!-- Application Resources --> 
     <j2se version="1.6+" 
       href="http://java.sun.com/products/autodl/j2se"/> 
     <jar href="Sample.jar" main="true" /> 

    </resources> 

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

    <application-desc 
     name="Screen" 
     main-class="script.ScriptFrame"> 
    </application-desc> 
    <update check="always"/> 
</jnlp> 

那codebase属性,我无法加载使此jnlp工作而不使用完整的ip。有没有办法让我这个亲戚或动态改变它。JNLP从相对地址加载罐子

回答

1

有没有一种办法可以作出这样的相对..

仅适用于嵌入式小程序。

..或者动态改变它。

当然,我猜测JNLP servlet会动态地填充代码库,或者可以稍微调整一下。