Title: [jdjlist] Applet Question
Thanks for the help.  However, I was able to figure this one out before I read any email, and I'll share the solution.
BTW, this problem was really exacerbated by moving to the JRE 1.4 Java Applet IE plugin.
 
This comes from having several classes in the same .java file:
 
-------------------------------------Foo.java
public class Foo {
 
public Bar bar = new Bar();
 
}
 
class Bar {
 
}
 
 
In JRE 1.3 you can call Foo.bar.  Under newer plugins (JRE 1.4) you can't -- you get a garbled message in what my friend told me was old-style mandarin (!) and no exceptions anywhere in the IE java console and/or appletviewer/jdb.
 
Solution is deceptively simple: split up the classes into separate files:
 
-------------------------------------Foo.java
public class Foo {
 
public Bar bar = new Bar();
 
}
 
-------------------------------------Bar.java
public class Bar {
 
}
 
Now you can call Foo.bar in all the JREs I tested.  I hope this saves 3 hours for someone...
 
Greg
 
 
-----Original Message-----
From: U. Penski [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 09, 2002 10:04 AM
To: JDJList
Subject: [jdjlist] Re: Applet Question

Hello,
with no other/better answer for hours - just a guess/initial idea:
The Garbage collection (probably responsible for the 1 minute freeze) leaves the system in a state that the "JRE 1.3.1_06" browser / JVM can't cope with.
 
I think I've got a similar problem with my "WinTV 2000" license from Hauppauge : after several fopen() and fclose() operations it slowly begins loosing control over 
(sub)window handles used for screen-buttons ending in a (sort of) 1 minute garbage collection that finishes with a stuck program (disturbed USB connection to external video hardware).
 
----- Original Message -----
To: JDJList
Sent: Friday, November 08, 2002 8:37 PM
Subject: [jdjlist] Applet Question

>For all the Applet experts out there:

[ don't ask how I debug my applets - you'll immediately throw me out of the group ]

>...

>...

>Any ideas on how to debug this are greatly appreciated. 
>...

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to