Question

Je reçois l'erreur suivante quand je télécharge une application JavaFX à un site Web, mais je ne suis pas localement.

Je présume que je manque quelque chose comme la balise « codebase », mais je ne sais pas où il va, quelqu'un peut me aider à s'il vous plaît?

Java erreur Console:

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.

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

Était-ce utile?

La solution

Matthew Hegarty, vous avez raison semble, la « Archieve » propriété n'a pas été orientée vers l'emplacement correct quand il a été téléchargé sur le serveur.

Si vous mettez un bas de réponse, je coche comme la bonne réponse.

Merci Jeff Porter

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top