JAVAFX:JNLP文件错误
-
30-09-2019 - |
题
将Javafx应用程序上传到网站时,我会遇到以下错误,但我在本地不会得到它。
我认为我缺少诸如“代码库”标签之类的东西,但是我不确定它的去向,有人可以帮我吗?
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"
}
);
解决方案
Matthew Hegarty,看来您是正确的,当将其上传到服务器时,“ Archieve”属性并未指向正确的位置。
如果您放下答案,我将把它作为正确的答案打勾。
感谢杰夫·波特
不隶属于 StackOverflow