Solved

Where we should write exceptions in applets?

Posted on 2001-06-19
4
171 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now