JRift - Junior- Stuck

Hi all,
I am a young Java fan developer.
And a huge fan of Oculus :wink: .

I am trying to use the JRift Lib of 38leinaD.

But I am stuck. Could someone help me ?
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:15)
at de.fruitfly.ovr.OculusRift.main(OculusRift.java:92)

Code uses/compiles on Window 8 (64 bit) with the OculusSDK 2.2 and Java JDK 1.7
Someone has an idea on what is causing this exception and how to counter it ?
Did someone already used JRift ?

You need the JRift dll and you need to point to it using -Djava.library.path. F.eks java -Djava.library.path=./lib -jar MyJar.jar

There is dll as part of the alpha that is linked on the jrift page: https://github.com/38leinaD/JRift.

It is only windows 32 bit. If you use another java vm you need to compile it yourself. I know there is a Visual Studio 2010 project as part of the source.

If you do this you may get another error message that says depending libraries not found. This is because the alpha dll was a debug build and it requires Visual Studio 2010. This can be solved by either installing Visual Studio 2010 or a redistributable.

I have tried the alpha dll and it works.

Have not got the rift to run correctly in jMonkeEngine. If you get that up and running please share.

^^ Sorry I was on an other forum.
I resolved my problems… It was between the keyboard and the screen :stuck_out_tongue:
But thanks for the help :wink:


https://developer.oculusvr.com/forums/:
"OUaahahah :stuck_out_tongue:
I resolved my problems… my noob problems ^^

So for this exception:

  • Exception in thread ā€œmainā€ java.lang.UnsatisfiedLinkError: C:\VgQD\Save\Oculus\workspace\OculusFirstApp\JRiftLibrary.dll: Can’t load IA 32-bit .dll on a AMD 64-bit platform
    It was because my JDK was a 64 bit. I through that the exception spoke about my OS :roll:

  • Exception in thread ā€œmainā€ java.lang.UnsatisfiedLinkError: de.fruitfly.ovr.OculusRift.initSubsystem()Z
    It was a miss-understanding, I had to include jdk/inlude/win32 in the c/c++ dependance at the compilation too.
    And the compilation did not fail cause I forget a file :lol: .

Thanks to you Master. Your reply helped me in an indirect way.

On the road again !"