java – JaNLA的JNLP错误
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了java – JaNLA的JNLP错误,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2478字,纯文字阅读大概需要4分钟。
内容图文
![java – JaNLA的JNLP错误](/upload/InfoBanner/zyjiaocheng/792/dd797cc37d184a548b78f59a8916f19d.jpg)
我从Here下载了一个jnlp文件,我从Here下载了JaNeLA
当我分析文件时,我遇到了以下错误.
这是文本报告
JaNeLA Report - version 11.05.17
Report for file:/C:/Documents%20and%20Settings/Administrator/Desktop/sample.jnlp
Content type application/xml does not equal expected type of application/x-java-jnlp-file
The element type "homepage" must be terminated by the matching end-tag "</homepage>".
我知道错误是直截了当但我无法解决它们并相信我已经尽力了.有人可以帮忙吗?
这是我的JNLP文件.
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp spec="6.0+" codebase="http://my_company.com/jaws/apps" href="swingset2.jnlp" >
<information>
<title>SwingSet2 Demo Application</title>
<vendor>Sun Microsystems, Inc.</vendor>
<homepage href="docs/help.html" />
<description>SwingSet2 Demo Application</description>
<description kind="short">A demo of the capabilities
of the Swing Graphical User Interface.</description>
<icon href="images/swingset2.jpg"/>
<icon kind="splash" href="images/splash.gif"/>
<offline-allowed/>
<association mime-type="application-x/swingset2-file" extensions="swingset2"/>
<shortcut online="false">
<desktop/>
<menu submenu="My Corporation Apps"/>
</shortcut>
</information>
<information os="linux">
<title> SwingSet2 Demo on Linux </title>
<homepage href="docs/linuxhelp.html">
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+" java-vm-args="-esa -Xnoclassgc"/>
<jar href="lib/SwingSet2.jar"/>
</resources>
<application-desc main-class="SwingSet2"/>
</jnlp>
解决方法:
I am interested to know how to fix the first problem
Content type application/xml does not equal expected type of application/x-java-jnlp-file
JaNeLA help建议:
The content-type or MIME type of the application was not the expected type.
- If this error is being returned from a real live server, it causes the client browser to simply display the content of the JNLP files as XML in the browser! Contact the server administraters to add the content-type.
- It is typical for JNLP files checked from the local file system to be of incorrect type.
JNLP的来源是:
file:/C:/Documents%20and%20Settings/Administrator/Desktop/sample.jnlp
..所以你可以放心地忽略那个警告.
其他问题
如上所述,评论.
<information os="linux">
<title> SwingSet2 Demo on Linux </title>
<homepage href="docs/linuxhelp.html">
</information>
该主页元素应以/结尾,如下所示:
<information os="linux">
<title> SwingSet2 Demo on Linux </title>
<homepage href="docs/linuxhelp.html"/>
</information>
内容总结
以上是互联网集市为您收集整理的java – JaNLA的JNLP错误全部内容,希望文章能够帮你解决java – JaNLA的JNLP错误所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。