Skip to content

NullPointerException when executing a runnable jar of the project #17

@Kuritzu

Description

@Kuritzu

Hello, I am using a runnable jar file in order to trigger the recording of the sensor. Until now, i had no problem but recently i got the following error

Tobii: Copying /lib/tobii/x64/tobii_stream_engine.dll into C:\Users\Kurit\AppData\Local/.tobiiStreamEngineForJava
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:208)
at java.base/java.nio.file.Files.copy(Files.java:3112)
at tobii.Tobii.copyResourceIntoDir(Tobii.java:112)
at tobii.Tobii.loadTobiiLibraries(Tobii.java:74)
at tobii.Tobii.loadNeededLibraries(Tobii.java:44)
at tobii.Tobii.loadIfNotLoaded(Tobii.java:33)
at tobii.Tobii.gazePosition(Tobii.java:19)
at tobii.TobiiDemo.main(TobiiDemo.java:38)

I understand that when running the runnable, the code is somehow not detecting the connected eye-tracker, I am not sure what I did to trigger this, but the device only seems to work when i start the java code from Eclipse, while the execution of the Jar file won't trigger the eye-tracker to start recording.

Thank you in advance for your help and time.

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