| Demo Software |
| Request Pricing |
|
|
|
15,489,360 crash reports |
Testing the sample application 'MyJavaCrasher'
Before you enable your Java application with BugSplat technology, you may want to take a moment to examine the defect reports created with our sample applications. To do this, login to BugSplat with user name 'Fred' and password 'Flintstone'. All the defect reports in the Fred account are actual crashes created with one of our sample applications. Defect reports from the application MyJavaCrasher are mixed in with defect reports from Windows applications. To view just the Java application crashes you can filter on application name "MyJavaCrasher" on the Custom Reports page.
Testing the sample application 'MyJavaCrasher'
Locate the MyJavaCrasher java source file from the zip that you just downloaded. Notice that there is a folder called "lib" which contains 4 libraries:
You will need to add these jars to your CLASSPATH.
Build the MyJavaCrasher source file and launch it without making any changes. Optionally, you may choose to build MyJavaCrasherConsole, which is a console version of the sample (for server applications).
Many of the buttons on the dialog will cause a crash. When a crash occurs, fill out the requested information and select 'Send'. You can verify that crash report was created by logging into BugSplat with user 'Fred' and password 'Flintstone' and selecting 'All Crash Reports'.
Look for a recent crash post that has the crash description you created.
Modifying the sample application 'MyJavaCrasher' to use your BugSplat account
Next, we will change the sample app so that crash reports are sent to your user
id.
In MyJavaCrasher.java search for the following line:
BugSplat.Init("Fred", "MyJavaCrasher", "1.0");
Make the following changes:
"Fred" so that it matches your BugSplat database name.
The BugSplat database is created and selected on the Manage Databases page."MyJavaCrasher" to a name of your choice (this is an arbitrary string, used to distinguish your applications across crash reports."1.0" to a string of your choice. Again this is arbitrary, but would typically match the version and build string of your application.Compile the MyJavaCrasher source file.
Next, launch MyJavaCrasher and select a crash button.
Fill in the requested information in the crash dialog and select "Send
Report"

To verify that the report was sent, log into BugSplat and verify the defect was recorded.