Solved

Where we should write exceptions in applets?

Posted on 2001-06-19
4
173 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cipher Configuration on Apache HTTPD 4 62
JavaScript/Java - Changing an image background color 4 66
check java version using powershell 13 84
servlet example 17 29
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

775 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