There's a wrapper mostly written by hoijui, I added some things as well.
If you like you are welcome to create a github project for unitsync for java, and set up maven repo, that way we could develop a better wrapper in cooperation. Not many people use the java unitsync right now but maybe in the future who knows, could be useful to someone.
i already have a much betteer wrapper locally. it has even OSGi support, which allows, next to other stuff, nice reloading of unityznc at runtime, which means you can load it from a different location. it also generates wrappers at comppiletime with maven plugins, and hides all JNA stuff from the interface. it is quite as i wanted it, i just have to actualiye it for current master unitsznc. i am not at home right now, will be soon though. just saying.. dont start somethign new i will try to do that son, now that i know there is someone that could use it. will be online later.
no real docu yet. i will upload a Pax-Exam test soon. Most basic usage instructions:
You may specify the dir containing unitsync like this: <code>System.setProperty("jna.library.path", unitsyncDir);</code> or the path to unitsync like this: <code>Preferences.userRoot().put("unitsync.path", unitsyncPath);</code>
Then start the bundle, and use either the "Unitsync" or "UnitsyncSimple" service (they only differ in one function, getInfoMapSize).
For further help, it may be best to meet me in the lobby.
We had success getting this to work in windows but now I need help getting it to work in linux and mac, both failed. Could you guys hang out in lobbydev more? It's not just for meetings anymore!
det has been helping me. Turns out I was pointing to unitsync.dll when that's windows only. I will need to detect OS and let user fix OS if necessary, and base the filename on that.
Ironically, we have not gotten it to work right for him on linux but i managed to get it to work on a macbook. So we're close.
Users browsing this forum: Bing [Bot] and 3 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum