سؤال

أحصل على الخطأ التالي عندما أقوم بتحميل تطبيق Javafx على موقع ويب ، لكنني لا أحصل عليه محليًا.

أفترض أنني أفتقد شيئًا مثل علامة "قاعدة الكود" ، لكنني لست متأكدًا من أين تذهب ، هل يمكن لأي شخص مساعدتي من فضلك؟

خطأ وحدة التحكم في جافا:

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

هل كانت مفيدة؟

المحلول

ماثيو هيغارتي ، يبدو أنك على صواب ، لم تكن خاصية "الأرشفة" تشير إلى الموقع الصحيح عندما تم تحميله على الخادم.

إذا وضعت إجابة لأسفل ، فسأضع علامة عليها كإجابة صحيحة.

شكرا جيف بورتر

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top