Solved

Work-around for JSObject.getWindow(applet) browser freezes?

Posted on 2006-07-16
5
572 Views
Last Modified: 2012-03-15
I have an application that makes use of some custom Java applets.  I did not write them and would prefer to avoid changing them if at all possible.  These applets are fairly simple and are used many (20+) times on any given HTML page.  They are essentially special buttons that control hardware behind the scenes.  These applets all call JSObject.getWindow(applet) to get a handle to the browser window.  This application runs fine under the Microsoft VM, but completely crashes when using the Sun VM.  When I comment out all but one of the applets on a page, it will run.  When I add them back, it freezes IE.

I've searched for easy work-arounds to this issue but I have not found any yet.  There are many discussions (newsgroups, forums, and even another question on experts exchange) that touch on the issue, but not one seems to give a final "this will work" answer.  I'm using the Sun 1.5.0_07 JRE.
0
Comment
Question by:dfu23
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 168 total points
ID: 17120319
Try recompiling them
0
 
LVL 13

Assisted Solution

by:Webstorm
Webstorm earned 166 total points
ID: 17120472
To clarify CEHJ's advice : recompile the classes using Sun compiler (J2SE SDK) 1.5.0
0
 
LVL 92

Assisted Solution

by:objects
objects earned 166 total points
ID: 17120584
if they're got MS specific code then theres not much you can do.
Have u pinpointed exactly what line of code causes the problem?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question