Re: Understanding this error list



bH wrote:
....
I have this program in an iBook, Mac OS 9.2.2 with Java 1.0.2.

What Hasan said, but also..

Why are you using such an *old* Java?
I note that even the applet viewer mentioned in the
stacktrace says 'JMAppletViewerOld' - do you have
a 'JMAppletViewerNew' on that system?

...And 1.0.2 - wow! I have never manged to find either
documentation on, or an rt.jar for, a '1.0' java ..how
big is the 'rt.jar' (or Mac equivalent)?

Oh, before I forget, the reason I noticed the Java
version was because of that very deprecated code
you posted. That is not a good book to be copying
from, as you will need to 'unlearn' a lot of what you
seem to be picking up.

&....

try {
getAppletContext().showDocument(new URL(textFld.getText()));
}
catch (Exception e) {;}

Never 'swallow' exceptions*.

catch (Exception e) {
e.printStackTrace();
}

* unless you can justify in a comment, why this
exception absolutely does not matter.

Andrew T.

.



Relevant Pages

  • Re: CMutex /CEvent (multiple threads)
    ... deals with exception detection. ...  If your function does not handle an exception in Java, ... designer did not understand what a Mutex was and that the notion that Lock could return ... ...roll back transaction ...
    (microsoft.public.vc.mfc)
  • =?iso-8859-1?q?Re:_Beyond_Java_Tiger_-_Defekte_und_L=FCcken_in_Java?=
    ... > synchronized-Block erweitert und dann eine Bibliothek für Threads zur ... man kann nicht sicher mehrere locks requiren ... > Java machen kann, wenn man denn will. ... > eine Exception soll abgefangen werden damit ich noch ein CleanUp machen ...
    (de.comp.lang.java)
  • Re: datetime exception 0xC0000008 JRE 1.4 windows
    ... > sais 2am. ... because both keys had 3am. ... > This exception goes up through the JAVA and kills the program - but only ...
    (comp.lang.java.programmer)
  • Re: contracted exceptions
    ... The Java experience shows that compiler checked exception ... violated exception contract caused Program_Error to be raised, the original, ...
    (comp.lang.ada)
  • datetime exception 0xC0000008 JRE 1.4 windows
    ... In Australia, daylight savings is supposed to end at 2am on the last sunday ... sais 2am. ... This exception goes up through the JAVA and kills the program - but only ...
    (comp.lang.java.programmer)