开发者

JavaFX: JNLP file error

开发者 https://www.devze.com 2022-12-30 13:54 出处:网络
I\'m getting the following error when I upload a JavaFX app to a website, but I don\'t get it locally.

I'm getting the following error when I upload a JavaFX app to a website, but I don't get it locally.

I'm presuming that I'm missing something like the 'codebase' tag, but I'm not sure where it goes, can anyone help me out please?

Java Console error:

exception: JNLP file error: iShout_Foxpro_b开发者_如何学Pythonrowser.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 file source...

<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, seems you are correct, the "archieve" property was not pointing to the correct location when it had been uploaded to the server.

If you put an answer down, I'll tick it as the correct answer.

Thanks Jeff Porter

0

精彩评论

暂无评论...
验证码 换一张
取 消