File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javafx applet problem

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a JavaFX application and it works well. But when I want to run it as an applet in a browser it hangs on the Java logo.

Any suggestions? Does that applet try to download .jnlp from net?
a.png
Hanging on that logo
[Thumbnail for a.png]
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Impossible to say without seeing the applet tag.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that applet is deployed by netbeans. it works well on different computer. any ideas?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "deployed by netbeans"? An applet is deployed by putting an HTML file -that contains an APPLET (or similar) tag- on a web server. I'd start by putting that in place. One way to achieve that is described here.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my code:
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd check the server logs to see whether Charts.jar is being accessed, and I'd check the Java Console to see if there are any (error) messages.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I have the following exception:
Unable to load resource: http://dl.javafx.com/1.3/javafx-rt-natives-windows-i586__V1.3.0_b412.jar.

Can you check if that is available?
 
Rob Spoor
Sheriff
Pie
Posts: 20396
47
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is here, with a direct HTTP request.
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What do you mean by "deployed by netbeans"? An applet is deployed by putting an HTML file -that contains an APPLET (or similar) tag- on a web server. I'd start by putting that in place. One way to achieve that is described here.


Running a JavaFX app in Netbeans in applet mode, automatically deploys the javaFX app internally and exposes it on a internal http endpoint. That's what he meant by "deployed by netbeans"
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucas Smith wrote:that applet is deployed by netbeans. it works well on different computer. any ideas?


Lucas,

As you say - Your JavaFX app works when accessed on different computer, but does not work when accessing from your machine

Have you tried to run the javaFX app in your Netbeans in "Standard Execution" mode instead of "applet execution" mode?
If the former worked and the latter did not on your machine, the problem is one of the following:

1. You are not able to download the JavaFX jars over the net - may be due to your browser security settings.
2. Your browser uses a older version of JRE or no JRE at all - Check your Java Console and enable the right version.

It is definitely one of these issues.
By the way, if you are interested in tryng the offline version of JavaFX, please ensure you got the online version working first :-)

Thanks,
Srikanth
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic