当我将一个JavaFX应用上传到一个网站时,我得到了以下错误,但我没有在本地得到它。
我假设我遗漏了像“codebase”标签这样的东西,但我不确定它在哪里,有人能帮我吗?
Java控制台错误:
exception: JNLP file error: iShout_Foxpro_browser.jnlp.
Please make sure the file exists and check if "codebase" and "href" in the JNLP
file are correct..
java.io.FileNotFoundException: JNLP file error: iShout_Foxpro_browser.jnlp.
Please make sure the file exists and check if "codebase" and "href" in the JNLP
file are correct.
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.io.FileNotFoundException: JNLP file error:
iShout_Foxpro_browser.jnlp.
Please make sure the file exists and check if "codebase" and "href" in the
JNLP file are correct.HTML文件源...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>app_one</title>
</head>
<body>
<script src="http://dl.javafx.com/1.3/dtfx.js"></script>
<script>
javafx(
{
archive: "app_one.jar",
draggable: true,
width: 480,
height: 320,
code: "app.Main",
name: "app_one"
}
);发布于 2010-05-24 15:26:02
Matthew Hegarty,看起来你是对的,"archieve“属性在上传到服务器时没有指向正确的位置。
如果你把答案写下来,我就把它划为正确答案。
谢谢Jeff Porter
https://stackoverflow.com/questions/2861107
复制相似问题