Page 1 of 1

Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Sat Mar 02, 2013 2:37 am
by Impee
UMS comes with the 32-bit Java Service Wrapper from Tanuki. This wrapper can't be used on Win 64-bit with Java 64-bit.

Unfortunately, Tanuki Software does not distribute a free build of JSW for 64 bit windows.

However, Tanuki's community source package is GPL v2. There is absolutely nothing preventing you from making a 64 bit make file and building JSW for 64 bit windows, and it will be completely free. I you won't go to the trouble of building the code yourself, then you can download it for free from http://www.krenger.ch/blog. Search on this page for the most recent version. Don't forget to leave a "thank you" on the site, because this is the only thing which the author asks for.

To run the wrapper, extract the following three files from the archive:
1) bin/wrapper.exe
2) lib/wrapper.dll
3) lib/wrapper.jar

Copy these three file to the UMS folder "win32/service". This will overwrite the existing 32-bit version of the wrapper.

Change the wrapper.conf file according to your needs.

Use the UMS GUI to install/uninstall the service. Stop the GUI and start the service. It works like a charm!

Tip: if you want to change options, you'll first have to stop the service, start the GUI, make and save changes, stop the GUI and finally start the service again.

Regards,
Impee.

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Sat Mar 02, 2013 3:40 am
by kuroukage
Or you could just install both the 64 bit and the 32 bit versions of Java. I'm using Windows 7 x64 and it works just fine this way. ;)

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Sat Mar 02, 2013 4:37 am
by Impee
Completely agree.

Nevertheless, i prefer the 64-bit wrapper because it allows me to:
1) Use one and only one JRE on my machine.
2) Allocate a bigger heap (and hence transcode buffer) for UMS.

I believe it all depends on personal taste. Nothing more, nothing less.

Regards,
Impee.

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Sat Mar 02, 2013 12:40 pm
by kuroukage
Well it's possible this could be considered in a future update (if SJ wants to start making 64 bit builds of UMS as well as the 32). You could post your suggestion in this thread.

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Sun Mar 03, 2013 12:25 pm
by Optimus_prime
kuroukage wrote:Well it's possible this could be considered in a future update (if SJ wants to start making 64 bit builds of UMS as well as the 32).
That would mean only using 64bit for the wrapper and java. From memory ffmpeg, mencoder and such aren't 64bit binaries within UMS. Not sure if you would see much of a difference if it was all 64bit but i'd rather see more features and such than focus on making it all 64bit. Only my opinion of course :)

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Wed Mar 06, 2013 8:38 pm
by Impee
I agree with Optimus_Prime to focus more on features than to focus on making it all 64 bit. This is why i didn't add this on the list of requested features in the first place.

I only opened this thread to share my findings with other people who prefer to use only java 64 bit and yet want to run UMS as a service.

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Wed Mar 06, 2013 8:48 pm
by kuroukage
Personally, it doesn't matter to me if it's 64 or 32bit as long as it functions just the same. :P

But, if he ever did start releasing 64bit versions, I'd most likely downloads those.

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Wed Mar 06, 2013 9:09 pm
by Optimus_prime
Impee/kuroukage,
although i did say what i said earlier, i would download a 64bit version if there was one. I don't think we would see one but i would like to see the intergration of the wrapper for 64bit at some stage.
But i was interested when you posted this as it enabled me to look into the wrapper more, for another project :)

Re: Runing UMS as a service on Win 64-bit with Java 64-bit

Posted: Wed Mar 06, 2013 9:38 pm
by Optimus_prime
If you want to test something i've put together over the last night there's a special Beta Build up on Sourceforge with detection of what Java (32 or 64 bit) your running that will determine what wrapper (Service 32/64bit) UMS will install.
It's the latest pull from Git and i've tested it myself. But use at your own risk as whilst i havent seen any bug's in it i'm sure some may pop up.
Either go here to get the Build
Or go to this forum post for more info about what else is in the build