Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when executing a runnable jar of the project #17

Open
Kuritzu opened this issue Jun 14, 2022 · 0 comments
Open

NullPointerException when executing a runnable jar of the project #17

Kuritzu opened this issue Jun 14, 2022 · 0 comments

Comments

@Kuritzu
Copy link

Kuritzu commented Jun 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant