NullPointerException
2009-04-06 14:42:38 GMT
Hello all,
I'm new to this library and I've a problem.
This source code:
import javax.usb.*;
public class maine
{
public static void main (String [] args) throws SecurityException,
UsbException
{
UsbServices us=UsbHostManager.getUsbServices(); //line 7
}
}
on running displays:
Exception in thread "main" java.lang.NullPointerException
at javax.usb.UsbHostManager.setupProperties(Unknown Source)
at javax.usb.UsbHostManager.getProperties(Unknown Source)
at javax.usb.UsbHostManager.createUsbServices(Unknown Source)
at javax.usb.UsbHostManager.getUsbServices(Unknown Source)
at maine.main(maine.java:7)
Why?
(I'm using Eclipse.)
Thanx to who replies me!
(Continue reading)
RSS Feed