Solved

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

Posted on 2006-07-16
5
573 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

837 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