Skip to content

Properties file javax.usb.properties not found error #7

@DineshDevaraj

Description

@DineshDevaraj

I tried to run the javax DumpDevices.java example application. I am getting Properties file javax.usb.properties not found error. But I have created the file in the same path. The structure of the directory, content of the file and Java version all are shared below.

mintty> ls -l
total 8
-rw-r--r-- 1 Dinesh Administrators 2739 Apr 29 20:10 DumpDevices.class
-rw-r--r-- 1 Dinesh Administrators 3355 Apr 29 20:10 DumpDevices.java
-rw-r--r-- 1 Dinesh Administrators 49 Apr 29 20:11 javax.usb.properties
mintty>
mintty> cat javax.usb.properties
javax.usb.services = org.usb4java.javax.Services
mintty>
mintty> java DumpDevices
Exception in thread "main" javax.usb.UsbException: Properties file javax.usb.properties not found.
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 DumpDevices.main(DumpDevices.java:94)
mintty> java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
Java HotSpot(TM) Client VM (build 25.66-b18, mixed mode)
mintty> javac -version
javac 1.8.0_66
mintty>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions