Java Library for Sixense Products

Well there is a video of that:

07IwxUD8N8E

Anywho, I should mention that pre-compiled Mac libraries will not be coming until I finish wrapping the remaining few classes as I do not have a Mac (at least one running a Mac OS) and I am avoiding the annoyingness that is compiling for Mac on linux as long as possible.

Thanks for this wrapper, but i need some help.

Sixense.init() throws me

Exception in thread "main" java.lang.UnsatisfiedLinkError: no sixense in java.library.path

Yet I included the libs like i always do: the jar and the DLLs (I’m using windows 8 / java 6) are in a “lib” directory and
the path is defined by -Djava.library.path=./lib/

System.getProperties().getProperty("java.library.path")

prints “./lib/”

Any idea ?
thanks

Thanks for this wrapper, but i need some help.

Sixense.init() throws me

Exception in thread "main" java.lang.UnsatisfiedLinkError: no sixense in java.library.path

Yet I included the libs like i always do: the jar and the DLLs (I’m using windows 8 / java 6) are in a “lib” directory and
the path is defined by -Djava.library.path=./lib/

System.getProperties().getProperty("java.library.path")

prints “./lib/”

Any idea ?
thanks

Sorry to take so long to reply, starting school has eaten all of my time. Anywho, just to make sure none of the basics are being forgotten, do you have sixense.dll in your libs folder? I’m not entirely sure it matters, but it should be mentioned that the library was compiled with Java 7.

No problem, thanks for replying

[s]SixenseJava32.dll and SixenseJava64.dll both are in the “lib” folder. also, i tried with java 7. Still not finding the native lib.

Meanwhile, I’ve found a C++ software that streams the sensor data over UDP, not optimal, but good enough for now…
[/s]

OK I get it. It’s looking for sixsens.dll that was provided with the Razer drivers…

now my path is set to " ./lib;C:/Program Files (x86)/Razer/Hydra "
but i get another exception…

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Razer\Hydra\sixense.dll: Can't find dependent libraries

:slight_smile:

Don’t use the libraries provided by Razer they are old and stupid. Go download the newer ones from Sixense’s website and plop those next to the wrapper so that it looks like this:

lib/
    - sixense.dll
    - sixense_utils.dll
    - SixenseJava32.dll
    - sixense_x64.dll
    - sixense_utils_x64.dll
    - SixenseJava64.dll

I tried the dll from the motion creator 2. I tried the dlls from the latest Razer SDK…
nothing works…

Sorry to take so long to reply, starting school has eaten all of my time. Anywho, just to make sure none of the basics are being forgotten, do you have sixense.dll in your libs folder? I’m not entirely sure it matters, but it should be mentioned that the library was compiled with Java 7.

No problem, thanks for replying

[s]SixenseJava32.dll and SixenseJava64.dll both are in the “lib” folder. also, i tried with java 7. Still not finding the native lib.

Meanwhile, I’ve found a C++ software that streams the sensor data over UDP, not optimal, but good enough for now…
[/s]

OK I get it. It’s looking for sixsens.dll that was provided with the Razer drivers…

now my path is set to " ./lib;C:/Program Files (x86)/Razer/Hydra "
but i get another exception…

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Razer\Hydra\sixense.dll: Can't find dependent libraries

:slight_smile:

Don’t use the libraries provided by Razer they are old and stupid. Go download the newer ones from Sixense’s website and plop those next to the wrapper so that it looks like this:

lib/
    - sixense.dll
    - sixense_utils.dll
    - SixenseJava32.dll
    - sixense_x64.dll
    - sixense_utils_x64.dll
    - SixenseJava64.dll

I tried the dll from the motion creator 2. I tried the dlls from the latest Razer SDK…
nothing works…

I’m also keep trying with every possible combination of dll’s and nothing is working. Up to date, Sixense created two versions of drivers for Hydra (1.00 and 1.01), and one comes from Razer, so it’s a kind of mess now. It would be nice if someone with working code upload package with all necessary drivers (in my case win32 ones). It would be a great help. Thanks in advance :slight_smile:

I’m also keep trying with every possible combination of dll’s and nothing is working. Up to date, Sixense created two versions of drivers for Hydra (1.00 and 1.01), and one comes from Razer, so it’s a kind of mess now. It would be nice if someone with working code upload package with all necessary drivers (in my case win32 ones). It would be a great help. Thanks in advance :slight_smile:

yeah,
I gave up on this one. I used a OSC streamer software that streams the hydra sensor values into a UDP localhost socket.
Not the best way, but the only way i could make it work.
That’s really disapointing.

yeah,
I gave up on this one. I used a OSC streamer software that streams the hydra sensor values into a UDP localhost socket.
Not the best way, but the only way i could make it work.
That’s really disapointing.

I see… Actually, I did a same thing before to send data from Wiimote to Java - send data over UDP socket via GlovePIE and receive it in Java application. Thought that maybe this time it’ll be much easier, but maybe I’ll try to do same thing to Hydra or just write wrapper from scratch. Thanks for response in topic.

I see… Actually, I did a same thing before to send data from Wiimote to Java - send data over UDP socket via GlovePIE and receive it in Java application. Thought that maybe this time it’ll be much easier, but maybe I’ll try to do same thing to Hydra or just write wrapper from scratch. Thanks for response in topic.

I’m sorry that it seems that so many people are having trouble with my wrapper. I haven’t had much time to work on this project, but I’ll recompile everything and try it on a few untested computers to try to reproduce the problem.

I’m sorry that it seems that so many people are having trouble with my wrapper. I haven’t had much time to work on this project, but I’ll recompile everything and try it on a few untested computers to try to reproduce the problem.

Thanks for all your time you give this project and being interested in current problems. I’m very glad and hope that someday even more people will use Hydra in Java language. In fact, the real problem isn’t your wrapper but many configurations that came up to day, creating a small mess with compatibility. Hope everything will work once again.