How do I view error messages for my Java applet?
Asked Answered
S

1

6

While trying to answer a applet question, the OP didn't know how to view error messages for his applet. It's been a while since I did this myself and I didn't find any step-by-step instructions for doing it, so I am posting a question and answer here for future generations.

Scudder answered 14/10, 2012 at 21:38 Comment(0)
S
6

Windows:

  1. Double-click on the Java icon in the System tray next to the clock in the lower right corner. This will open the Java Control Panel.

  2. Click on the Advanced tab.

  3. Click on the + next to "Java Console" then click on "Show the Console".

The Java Console will display any stacktraces showing error messages from thrown Exceptions. You can also add System.out.println() calls to your applet code to print your own custom messages in the console.

Scudder answered 14/10, 2012 at 21:38 Comment(2)
I typically send people to How do I enable and view the Java Console?Greengrocer
@AndrewThompson Thanks for the link. That didn't come up in my google search. But then I was googling for "Java Control Panel" rather than "Java Console".Scudder

© 2022 - 2024 — McMap. All rights reserved.