File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Loading java causes browser to hang, no console msg Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Loading java causes browser to hang, no console msg" Watch "Loading java causes browser to hang, no console msg" New topic
Author

Loading java causes browser to hang, no console msg

Tom Corcoran
Greenhorn

Joined: Oct 11, 2006
Posts: 8
I have no problems running the app on my machine. The problem is when I deploy. I have 2 .jar files. When I try and load the first page of this swing app I get the Java sun logo in the browser.

v5.07 is installed and enabled in firefox/IE 6.

The html page which calls the applet uses referenced location for the jar files. I did also try adding the .jar file to a classpath vairable without any effect.

Right clicking the java icon in the tray and opening the console window, there is no entry after the home directory.

I can't think of what else to try. Any ideas?

Thanks a lot,

Tom.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Lots of things could be causing this...

Have you tried running through appletviewer first rather than running it in a webpage... appletviewer has a less strict sandbox than the browser, so it might show that your problems are related to that.

You say it causes the browser to "hang" - is the browser actully "hung" (like, you can't go to other webpages and have to kill the browser process to exit, etc.) or is your app not responding? If it's the second, there could be an exeption being thrown, but not being reported... are there any areas of the code with empty catch clauses? ie.



Errors won't be reported or dealt with at all in these cases, but the errors may cause the application to be unable to continue.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Tom Corcoran
Greenhorn

Joined: Oct 11, 2006
Posts: 8
Thanks for all the tips Nathan.

I figured it out eventually.

It tirned out to be because TableLayout.jar (layout manager used and distributed in the install) was readonly. Removing the readonly attribute solved the problem! Why would this need to be writeable?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading java causes browser to hang, no console msg