This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JavaFX and the fly likes javafx applet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "javafx applet problem" Watch "javafx applet problem" New topic
Author

javafx applet problem

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

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?



[Thumbnail for a.png]



SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
Impossible to say without seeing the applet tag.


Ping & DNS - my free Android networking tools app
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

that applet is deployed by netbeans. it works well on different computer. any ideas?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
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

Joined: Apr 20, 2009
Posts: 804
    
    1

this is my code:
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
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

Joined: Apr 20, 2009
Posts: 804
    
    1

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

Joined: Oct 27, 2005
Posts: 19656
    
  18

It is here, with a direct HTTP request.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
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 of Struts Survival Guide : Basics to Best Practices
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
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
 
subject: javafx applet problem
 
Similar Threads
Sending email
Why JavaFX?
How to Deploy a JavaFX Application as an Applet?
JavaFX vs Swing or JavaFx vs Applet ?
With JavaFX can develop both web and desktop Apps