jnlp的完整文件内容如下:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.5+" codebase="http://222.197.201.144:8080/proj" href="login.jnlp"">
 <information>
  <title>user login</title>
  <vendor>xyz.com</vendor>
  <description>please enter you name</description>
  <offline-allowed/>
 </information>
 <resources>
  <j2se version="1.5.0+"/>
  <jar href="proj.jar"/>
 </resources>
 <application-desc/>
</jnlp>客户端运行时弹出“应用程序错误”的信息框,详细信息为:启动文件中缺少下列必需字段:<jnlp>(<application-desc>|<applet-desc>|<installer-desc>|<component-desc>)
但我的jnlp文件中已经有了 <application-desc/>啊,其中的main-class属性可以省略,只要在Manifest.MF文件中指明了Main-Class就可以了。