2010-05-18 109 views
1

当我将JavaFX应用上传到网站时,出现以下错误,但我没有在本地获取它。JavaFX:JNLP文件错误

我假设我错过了'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" 
    } 
); 

+0

你有没有试过把完整路径水罐里的“档案”属性? – 2010-05-23 17:53:50

回答

1

马修·赫加蒂,看来你是正确的, “archieve” 属性未指向当它被上传到服务器时到正确的位置。

如果你放下一个答案,我会打勾它作为正确的答案。

感谢 杰夫·波特