Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Java
Expertise: Intermediate
Jan 12, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Java Consoles Show What's Going On With Applets

Modern Java IDEs like Symantec's Visual Cafe and Inprise's JBuilder offer advanced applet debugging facilities. However, if you develop your applets using only the freely distributed JDK, it might be very hard to see which particular things go wrong when they do. Additionally, you may encounter situations where your applet behaves fine under Netscape Navigator and strangely under Internet Explorer (or vice versa). Different Java Virtual Machines may have different levels of tolerance for a bug. Sometimes, the bug lies in the actual virtual machine implementation. The lack of information provided by the browser about applets can be frustrating. However, there is a way to display a debugging console, which will provide developers with additional information. For example, an uncaught exception will generate an exception trace, telling you which method and which exception were involved with the exception. Latest versions of both Netscape Navigator and Internet Explorer have debugging consoles for Java. To launch the Java Console in Netscape Communicator: Load any page with an applet, and then select the following menu option.
Communicator -> Tools -> Java Console 
To view the Java Console in Netscape Communicator, first, you must ensure that the Java console is enabled. Make sure that the following checkbox is checked:
Tools -> Options -> Advanced -> Java Console Enabled 
Next, load any page with an applet, and then select the following menu option:
View -> Java Console 
Both of these consoles provide useful debugging information, which can assist you in tracking down potential problems.
Behrouz Fallahi
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date