JavaFX的不会在我的网页加载 [英] JavaFX won't load on my webpage
问题描述
我意识到这是一个非常模糊的问题,所以我不找细节,只是建议...
I realize this is a very vague question, so I'm not looking for specifics, just suggestions...
我写在NetBeans JavaFX应用程序,从而自动地构建成一个罐子,JNLP和HTML页面。这些文件上传到我的web服务器,我可以浏览网页和一切正常,在电脑上我开发它的。在其他任何计算机,它只是挂在载入画面(旋转动画)。事情我已经试过:
I wrote a JavaFX application in NetBeans, which automagically builds it into a jar, jnlp, and html page. After uploading these files onto my webserver, I can navigate to the page and everything works, on the computer I developed it on. On any other computer, it just hangs at the loading screen (spinning animation). Things I've tried:
- 确信这些电脑有最最新JRE
- 试图在Chrome和IE
- 设置为RWX权限的所有文件,所有用户(我因为撤消这个)
任何想法?
谢谢!
此外,如果是很重要的,链接到的JavaFX应用程序是这里一>
Also, in case it's important, the link to the JavaFX app is right here.
推荐答案
原来这是因为我使用产生JNLPs在NetBeans。看看<一个href=\"http://www.dieajax.com/2008/12/19/10-minute-javafx-tutorial-deploy-javafx-applets-and-applications-both-online-and-offline/\"相对=nofollow>这篇文章。它描述正是我遇到的问题,以及如何解决它,朝下方。简而言之,你会发现JNLPs有一些属性叫做'codeBase的和HREF一旦你从你的NetBeans项目移动的执行文件到您的网络服务器不再有效。
Turns out it was because I was using the NetBeans generated JNLPs. Take a look at this article. It describes exactly the problem I was having and how to fix it, towards the bottom. In a nutshell, you'll notice the JNLPs have some attributes called 'codebase' and 'href' that are no longer valid once you move the execution files from your NetBeans project to your webserver.
这篇关于JavaFX的不会在我的网页加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!