如何从 Java Mac Os X 应用程序包打印堆栈跟踪
我有一个基于处理的 Java 应用程序,它在 Eclipse 中运行良好,但我构建的应用程序包在启动时崩溃。我想打印堆栈跟踪,以便找出导致问题的原因。我认为这应该非常简单,但我在任何地方都找不到这样的示例(也许我的术语不正确?)
OS X 10.6.7 java版本“1.6.0_24” Java(TM) SE 运行时环境(内部版本 1.6.0_24-b07-334-10M3326) Java HotSpot(TM) 64 位服务器 VM(内部版本 19.1-b02-334,混合模式)
I have a processing based Java application that runs fine in Eclipse but the Application bundle that I build crashes on launch. I want to print a stack trace so I can figure out what is causing the problem. I think this should be pretty straight forward but I can't find an example of this anywhere (maybe my terminology is incorrect?)
OS X 10.6.7
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你检查过系统日志吗?启动控制台应用程序并查看堆栈跟踪是否正在打印。
Have you checked the system log? Launch the Console app and see if the stack trace is printing there.