如何查看错误信息为我的Java小程序? [英] How do I view error messages for my Java applet?

查看:427
本文介绍了如何查看错误信息为我的Java小程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在试图回答一个<一个href=\"http://stackoverflow.com/questions/12886600/how-do-i-nest-layout-managers-without-using-swing-classes-methods#comment17450075_12886600\">applet问题的OP不知道如何查看错误消息对他的小程序。它已经有一段时间,因为我这样做我自己,我没有找到做任何一步一步的指导,所以我张贴的问题和答案在这里的后代。

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.

推荐答案

Windows系统:


  1. 在系统托盘中的Java双击图标旁边右下角的时钟。这将打开Java控制面板。

  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.

点击高级选项卡上。

点击 + 旁边的Java控制台,然后点击显示控制台。

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

Java控制台将显示出从抛出的异常的错误消息的任何踪迹。您还可以添加的System.out.println()调用你的applet code。在控制台打印自己的自定义信息。

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.

这篇关于如何查看错误信息为我的Java小程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆