Solved

Where we should write exceptions in applets?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
starter POM and spring-boot-starter,  spring-boot-web 2 43
JUnit 4 @Before and @BeforeClass differences 3 48
table example 4 24
MySQL  on Tomcat 8 30
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This video teaches viewers about errors in exception handling.
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 …

867 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

12 Experts available now in Live!

Get 1:1 Help Now