public class RunUSBControllerTest extends JFrame{

/** Creates a new instance of RunUSBControllerTest */
public RunUSBControllerTest() {
Host host;
try {
host = HostFactory.getHost();
host.addUSBListener(new ControllerUSBListener() {
public void deviceAdded (Device dev)
public void deviceRemoved(Device dev) {
} catch (IOException e) {
setSize(100, 100);
public static void main(String[] args1) {
RunUSBControllerTest test = new RunUSBControllerTest() ;
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );

here is the code.. when i run the window will appear and after i insert my pen drive the window will just disappear and leaves hr_err_pid log file. I am using jusb API
also showing following error in console:
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00c69f04, pid=5052, tid=5328
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# j;+0
# If you would like to submit a bug report, please visit:
# HotSpot Virtual Machine Error Reporting Page
pls help me?