2010-05-18 38 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」 屬性未指向當它被上傳到服務器時到正確的位置。

如果你放下一個答案,我會打勾它作爲正確的答案。

感謝 傑夫·波特