You need to include more info.  What platform?  What packages do you
have?  Did you include the properties file?  etc.

On Mon, Apr 6, 2009 at 10:42 AM, giulio <juliu...@alice.it> wrote:
> 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!
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> javax-usb-devel mailing list
> javax-usb-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to