1

将 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"
    }
);

4

1 回答 1

1

Matthew Hegarty,看来你是对的,“archieve”属性在上传到服务器时没有指向正确的位置。

如果你把答案写下来,我会把它打勾为正确答案。

谢谢杰夫波特

于 2010-05-24T07:26:02.280 回答