Вопрос

Я получаю следующую ошибку, когда я загружаю приложение JavaFX на сайт, но я не получаю это локально.

Я предполагаю, что я пропускаю что-то вроде тега «CodeBase», но я не уверен, куда он идет, может кто-нибудь помочь мне, пожалуйста?

Ошибка консоли 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-источник файла ...

<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, кажется, вы правы, недвижимость «Archiev» не указывала на правильное место, когда он был загружен на сервер.

Если вы положите ответ, я отмечу его как правильный ответ.

Спасибо Джефф Портер

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top