On this page, we will show you in a few simple steps how your Java application can be modified to provide full debug information on the BugSplat website when it crashes. To get a feel for the BugSplat service prior to enabling your application, feel free to experiment with the MyJavaCrasher sample application which is part of the BugSplat software development kit that can be downloaded by registered users.
Enabling your application with BugSplat technology:
First, make sure you have completed the following checklist:
Creating defect reports using your own application
Add BugSplat to your application as follows:
"bugsplat.jar""soap.jar""mailapi.jar""activation.jar"com.bugsplatsoftware.client.BugSplat.
MyJavaCrasher.Catching exceptions in Threads
If your application creates threads, you will want an exception report to be generated before the thread is terminated:
class MyThreadGroup extends ThreadGroup {
public MyThreadGroup(String s) {
super(s);
}
public void uncaughtException(Thread thread, Throwable throwable) {
BugSplat.HandleException(new Exception(throwable));
}
}
Remember to test your application by forcing a crash, and verifying that crashes are posted a good call stack is created.
Please contact us with any questions or problems you have - we want to help!