Page 1 of 1

Install Serviio 1.5 on Windows without bundled Java

PostPosted: Fri Jan 16, 2015 6:43 pm
by andreyv
Hello,

Serviio 1.5 release notes say that Java is now bundled with the installer for Windows. And indeed, after the installation I noticed that a JRE was installed in .../Program Files/Serviio/jre.

As I already have Java installed, I do not want a second JRE copy, which is also outdated (1.8.0.20 versus the latest 1.8.0.25) and won't be updated. How do I install/use Serviio without the bundled Java?

I tried removing the jre/ directory in hope that Serviio would use system Java, but the service doesn't start without it. Looking at serviio.bat source, I see that paths are hardcoded... I can edit them, but this doesn't seem right.

Re: Install Serviio 1.5 on Windows without bundled Java

PostPosted: Fri Jan 16, 2015 7:38 pm
by stefana888
I'm keeping 1.4.1.2 no deal installing 1.5.

Re: Install Serviio 1.5 on Windows without bundled Java

PostPosted: Fri Jan 16, 2015 10:09 pm
by GileZ
I can kind understand why it makes sense to offer to install Java for those who don't have it already, but I can't say that I understand the logic of forcing a Serviio-specific installation (and as you point out, not even the latest version) by default. I'm hoping to upgrade to v1.5 as soon as possible, but I'll want to make sure I can use the default Java installation before I do.

Re: Install Serviio 1.5 on Windows without bundled Java

PostPosted: Fri Jan 16, 2015 11:15 pm
by stefana888
I see no new features at all making it worth updating a working installation. It makes no sense having more than one Java installation as well.

Re: Install Serviio 1.5 on Windows without bundled Java

PostPosted: Sat Jan 17, 2015 12:29 am
by zip
A lot of people are getting errors regarding Java, be it the 32 vs 64 bit problem, or Java upgrade breaking stuff for them.

So this is for the normal users. If you guys want to use your own JRE, create a ticket and I'll add it for a future version.

For now, I guess you could create a link to the system jre -> serviio/jre

Re: Install Serviio 1.5 on Windows without bundled Java

PostPosted: Sat Jan 17, 2015 9:06 am
by andreyv
Thanks for the symlink solution, it's really nice :) Using this solution I am able to run serviio.bat and serviio-console.bat. I didn't try to stream something yet.

I have created an issue for this: https://bitbucket.org/xnejp03/serviio/issue/842

Also, running ServiioConsole.exe or the service aborts with "No valid JRE found ... Please install a 32-bit JRE or JDK." Does it mean that 64-bit Java is not supported?

Re: Install Serviio 1.5 on Windows without bundled Java

PostPosted: Sat Jan 17, 2015 4:56 pm
by zip
ah yes. the bundled in 32bits. the exe wrappers need either 32 or 64, this one supports 32 bit only