webstart部署swt应用

sqladmin依赖swt,而swt在不同平台运行需要使用不同的jar包,以下是示例jnlp文件:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="https://192.168.6.63/svn/Product/trunk/webstart/" href="sqladmin.jnlp">
  <information>
    <title>sqladmin</title>
    <vendor>[email protected]</vendor>
    <description>某数据库前端调试工具</description>
    <description kind="short">sqladmin customized for product developemnt</description>
    <icon href="app.gif"/>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.6+"/>
    <jar href="sqladmin.jar" main="true" download="eager"/>
    <jar href="dependency/commons-codec-1.4.jar" download="eager"/>
    <jar href="dependency/httpclient-4.1.3.jar" download="eager"/>
    <jar href="dependency/libthrift-0.9.0.jar" download="eager"/>
    <jar href="dependency/slf4j-api-1.5.8.jar" download="eager"/>
    <jar href="dependency/ProductJDBC-0.0.2-SNAPSHOT.jar" download="eager"/>
    <jar href="dependency/commons-lang-2.5.jar" download="eager"/>
    <jar href="dependency/httpcore-4.1.3.jar" download="eager"/>
    <jar href="dependency/log4j-1.2.14.jar" download="eager"/>
    <jar href="dependency/slf4j-log4j12-1.5.8.jar" download="eager"/>
    <jar href="dependency/commons-logging-1.1.1.jar" download="eager"/>
    <jar href="dependency/lz4-1.2.0.jar" download="eager"/>
    <jar href="dependency/ojdbc6-11.2.0.2.0.jar" download="eager"/>
    <jar href="dependency/mysql-connector-java-5.1.6.jar" download="eager"/>
  </resources>
  <resources os="Windows" arch="x86">
    <j2se version="1.6+"/>
    <jar href="dependency/swt-win-32/swt-4.3.jar" download="eager"/>
  </resources>
  <resources os="Windows" arch="amd64">
    <j2se version="1.6+"/>
    <jar href="dependency/swt-win-64/swt-4.3.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="x86 i386">
    <!-- need test -->
    <j2se version="1.6+"/>
    <jar href="dependency/swt-linux-32/swt-4.3.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="x86_64 amd64">
    <!-- need test -->
    <j2se version="1.6+"/>
    <jar href="dependency/swt-linux-64/swt-4.3.jar" download="eager"/>
  </resources>
  <application-desc main-class="gnu.sql.tools.sqladmin.SqlAdmin">
  </application-desc>
</jnlp>

 

你可能感兴趣的:(start)