Pregunta

Estoy recibiendo el siguiente error al cargar una aplicación JavaFX a un sitio web, pero no conseguirlo localmente.

Estoy suponiendo que me falta algo así como la etiqueta 'código base', pero no estoy seguro de a dónde va, ¿Hay alguien que me ayude por favor?

Error de consola de 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 fuente de archivo ...

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

¿Fue útil?

Solución

Mateo Hegarty, parece que está en lo cierto, el "archieve" propiedad no estaba apuntando a la ubicación correcta cuando se había cargado en el servidor.

Si usa una baja respuesta, voy a tictac como la respuesta correcta.

Gracias Jeff Porter

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top