Skip to content

java.io.IOException: device not opened (3) #7

@FrimJo

Description

@FrimJo

Hi

I have added the JD2XX.jar found in JD2XX/prebuilt.jnilibs/ and set its Native library location to a folder containing the libjd2xx.jnilib found in JD2XX/prebuilt.jnilibs/osx/.

After importing jd2xx.JD2XX to my class-file and ran the following code:

JD2XX jd = new JD2XX();

Object[] devs = jd.listDevicesBySerialNumber();
for (int i=0; i<devs.length; ++i)
  System.out.println(devs[i]);

jd.open(0);

I get java.io.IOException: device not opened (3), even though i get DA01E0C7 as output from sys out. So clearly my system finds the device but can't open it, any ideas?

I'm on Mac OS X El Capitan Version 10.11.3 using Eclipse Version Mars.2 Release (4.5.2). and the FDTI drivers provided in JD2XX/ftdi/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions