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

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Impee
Posts: 11
Joined: Fri Jan 18, 2013 7:23 am

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

Post 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.
Regards,
Impee.
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

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

Post 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. ;)
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
Impee
Posts: 11
Joined: Fri Jan 18, 2013 7:23 am

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

Post 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.
Regards,
Impee.
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

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

Post 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.
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

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

Post 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 :)
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
Impee
Posts: 11
Joined: Fri Jan 18, 2013 7:23 am

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

Post 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.
Regards,
Impee.
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

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

Post 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.
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

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

Post 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 :)
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

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

Post 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
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
Post Reply