Solved

Where we should write exceptions in applets?

Posted on 2001-06-19
4
176 Views
Last Modified: 2010-03-31
hi,
I wonder where applet writes my exception if
e.g
catch( IOException ioe )
{
    System.out.println ( ioe );
}

like in JRun if i do this then it will write it in default-out.log.

if it is not appropriate way to print exception then what should  I do to c exception at client side.

waiting for quick reply.
kaspak.

0
Comment
Question by:kaspak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:rjackman
ID: 6205404
hi
u can c the exception thrown by applet in the browser's java console
in ie it is in view menu
where as in netscape it is in
communicator----->tools--->javaconsole
cheers
RJ
0
 
LVL 3

Expert Comment

by:yerkan
ID: 6205412
Hi,

Because the applets run on the client side, they try to write on the client machine. With Netscape browser, you can activate the Java Console (menu "Task->Tools->Java Console" in Netscape 6 and "Communicator->Tools->Java Console" in Netscape 4.x) and you are going to see all the output...

Regards,

    Yagiz
    http://www.erkans.com
0
 
LVL 9

Accepted Solution

by:
Ovi earned 50 total points
ID: 6205498
Generally speaking, applets are writing the output in the Java Console. For Netscape, you have allready posted two comments to see that. For IE you have View->JavaConsole, but this option must be enabled from Tools->InternetOptions->Advanced tab->MicrosoftVM option, and reqiures to restart the browser window.
0
 

Expert Comment

by:theoyaung
ID: 6206722
If you want to output your exception messages without using System.out or System.err, you may wish to try using the showStatus(...) method of an Applet, which should output to the browser's status bar =)
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

734 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