Frage

Ich erhalte die folgende Fehlermeldung, wenn ich eine JavaFX App auf eine Website hochladen, aber ich es nicht vor Ort bekommen.

Ich bin der Annahme, dass ich so etwas wie die ‚Code-Basis‘ tag bin fehlt, aber ich bin nicht sicher, wo es geht, kann jemand helfen mir bitte?

Java-Konsole Fehler:

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-Datei Quelle ...

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

War es hilfreich?

Lösung

Matthew Hegarty, scheint Sie richtig sind, wurde die „archieve“ Eigenschaft nicht an den richtigen Ort zeigt, wenn es auf den Server hochgeladen worden waren.

Wenn Sie eine Antwort aus der Hand legen, werde ich es als die richtige Antwort ankreuzen.

Danke Jeff Porter

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top