JavaFX: Errore di file JNLP
-
30-09-2019 - |
Domanda
sto ottenendo il seguente errore quando ho caricare un'applicazione JavaFX a un sito web, ma non farlo a livello locale.
sto presumendo che mi manca qualcosa come il tag 'codebase', ma non sono sicuro dove va, qualcuno può darmi una mano per favore?
Errore console 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 file di origine ...
<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"
}
);
Soluzione
Matthew Hegarty, sembra lei ha ragione, il "archieve" proprietà non era rivolto alla posizione corretta quando era stato caricato sul server.
Se si mette una risposta verso il basso, io spuntare come la risposta corretta.
Grazie Jeff Porter
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow