我是java Web Start的新手,并尝试在我的服务器上设置jnlp下载。
Web启动似乎启动正常,但是出现以下错误:
WARNING: <meta> tag is not closed correctly Exception parsing xml at line 3
第3行只包含元描述。最初我使用了xml解析可能会反对的一些字符,这些字符是“ - ”和“(”“)”。怀疑这些字符在元描述中可能无效,我将其从我的网页和jnlp脚本中的元数据中删除。
但是,当我尝试运行Web start时,它仍然有第3行:
<head><title>xxxxxx</title><meta name="author" content="xxxxx"><meta name="keywords" content="xxxxxx xxxxxxxx xxxxxxxxx"><meta name="description" content="xxxx (xxx) xxxxx, xxxx, 2-12 players."></head>
换句话说,它没有显示我更新的元信息。从哪里获取这个旧版本,以及如何更新它?
最重要的是,字符是“ - ()”,无论如何都会导致我的问题?
这是我网站的链接。请注意,它还没有准备好上线! fantasyhexwars.com/getting_started.html
答案 0 :(得分:1)
很可能配置错误了!
似乎是这样。
http://fantasyhexwars.com/include/launch.jnlp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html lang="en">
<head><title>Fantasy Hex Wars</title><meta name="author" content="Mark Keen"><meta name="keywords" content="strategy fantasy hex wars multiplayer war game turn based"><meta name="description" content="An online, turn-based, strategy game for up to 12 players."><link rel="shortcut icon" href="http://91.223.16.102/httpdocs/favicon.ico"></head>
<frameset rows="100%,*">
<frame title="http://91.223.16.102/include/launch.jnlp" src="http://91.223.16.102/include/launch.jnlp" name="mainframe" frameborder="0" noresize="noresize" scrolling="auto">
<frame title="empty frame" frameborder="0" scrolling="no" noresize="noresize">
<noframes>Sorry, you don"t appear to have frame support.
Go here instead - <a href="http://91.223.16.102/include/launch.jnlp">Fantasy Hex Wars</a></noframes>
</frameset>
</html>
http://91.223.16.102/include/launch.jnlp
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://fantasyhexwars.com/httpdocs/include" href="launch.jnlp" spec="1.0+">
<information>
<title>Fantasy Hex Wars</title>
<vendor>Fysh Games</vendor>
<homepage href="fantasyhexwars.com"/>
<description>A turn-based, online, multiplayer strategy game.</description>
<description kind="short">Fantasy Hex Wars</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="FantasyHexWar.jar" main="true"/>
<jar href="lib/appframework-1.0.3.jar"/>
<jar href="lib/swing-worker-1.1.jar"/>
<jar href="lib/beansbinding-1.2.1.jar"/>
<jar href="lib/mail.jar"/>
</resources>
<application-desc main-class="fantasyhexwar.FantasyHexWarApp">
</application-desc>
</jnlp>