首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >JavaFX: JNLP文件错误

JavaFX: JNLP文件错误
EN

Stack Overflow用户
提问于 2010-05-19 04:55:14
回答 1查看 2.6K关注 0票数 1

当我将一个JavaFX应用上传到一个网站时,我得到了以下错误,但我没有在本地得到它。

我假设我遗漏了像“codebase”标签这样的东西,但我不确定它在哪里,有人能帮我吗?

Java控制台错误:

代码语言:javascript
复制
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文件源...

代码语言:javascript
复制
<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"
    }
);
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-05-24 15:26:02

Matthew Hegarty,看起来你是对的,"archieve“属性在上传到服务器时没有指向正确的位置。

如果你把答案写下来,我就把它划为正确答案。

谢谢Jeff Porter

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2861107

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档