JavaFX won't load on my webpage

亡梦爱人 提交于 2019-12-06 15:31:39

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.

I've got the "forever spinning" wheel.

Have you looked into the console of the JVM started up by the browser? I'm running FF3 on XP and in the Taskbar I've the Java-Icon where on right-click I can open the console which gives me:

Exception: null
java.io.FileNotFoundException: JNLP not available: RABfx_browser.jnlp
    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 not available: RABfx_browser.jnlp

The JVM is 1.6.0_11 .

It worked fine for me. One thing I noticed is that there was a security check dialog box (trust content from Sun?) and a Sun advert saying how great JavaFX was :-).

Make sure these aren't starting up behind your browser window - it won't continue to run until you trust the content, and I've seen that behavior before.

Otherwise, I suspect it's a security (or other) setting in your browser. FWIW, I'm using Firefox 3.0.5 and the recently downloaded Sun JRE 1.6._03 (I think).

It's also not very smart yet, even on difficulty level 2. Player to top-left, Computer to center, Player to bottom right, "Computer to a corner" will always result in a player win (unless they're TicTacToe-deficient somehow). The right move for the computer in the quotes above is one of the edges. But I'm pretty certain you didn't want me to critique your AI :-).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!