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

Simple example failing #10

Open
elect86 opened this issue Feb 13, 2014 · 1 comment
Open

Simple example failing #10

elect86 opened this issue Feb 13, 2014 · 1 comment

Comments

@elect86
Copy link

elect86 commented Feb 13, 2014

So, I am trying to run a simple example

public class Test {

public static void main(String args[]) {

    OculusRift oculusRift = new OculusRift();        
    oculusRift.init();

    HMDInfo hdmInfo = oculusRift.getHMDInfo();
    System.out.println(hdmInfo);

    oculusRift.destroy();
}

}

But I get this error

Exception in thread "main" java.lang.UnsatisfiedLinkError: de.fruitfly.ovr.OculusRift.initSubsystem()Z
at de.fruitfly.ovr.OculusRift.initSubsystem(Native Method)
at de.fruitfly.ovr.OculusRift.init(OculusRift.java:82)
at ec.test.test3.Test.main(Test.java:21)
Java Result: 1

I created and included a Library based on:

JRift-0.2.5.1.jar
JRiftLibrary-0.2.5.1.jar
JRiftLibrary-0.2.5.1-natives-windows.jar

What is missing?

@elect86
Copy link
Author

elect86 commented Feb 13, 2014

Forced by extracting JRiftLibrary64.dll and adding it to the java path

System.loadLibrary("JRiftLibrary64");

It works.. wtf?

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