How do I view error messages for my Java applet?

允我心安 提交于 2019-12-04 01:26:14

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/12886783/how-do-i-view-error-messages-for-my-java-applet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!