Page 1 of 1

Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Thu Jan 15, 2015 10:32 am
by Neumann
I bought my Serviio PRO licence just recently, but just before Serviio 1.5. I'm currently running 1.4.1.2 on a Zyxel NSA325-v2. Now, I cannot update since Oracle doesn't provide the appropriate JRE for Java 8 anymore. I downloaded http://download.oracle.com/otn/java/ejdk/8u6-b23/ejdk-8u6-fcs-b23-linux-arm-sflt-12_jun_2014.tar.gz, unpacked it under Win 7, and found a directory called ...\ejdk-8u6-fcs-b23-linux-arm-sflt-12_jun_2014\ejdk1.8.0_06\linux_arm_sflt\jre\. The directory structure under it looks pretty much like my current Java 7 on the NAS, but I'm not sure if I can just copy it over and use it.

On the Oracle site, they say you have to create the JRE using JRECreate, which would require a Linux machine with 1GB of free memory. So, no hope doing it on the NAS itself. (And certainly not on my Win 7 PC.)

Can anyone help, or even provide a suitable JRE 8?

Also, where can I get ffmpeg 2.4?

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Sat Jan 17, 2015 7:11 pm
by norm
Compiling ffmpeg is quite an involved task. You might be best asking on http://forum.nas-central.org/viewforum.php?f=249 to see if someone can assist.

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Tue Jan 20, 2015 12:06 pm
by Neumann
Thank you, but I think my current ffmpeg 2.1.3 would do just as well. I use transcoding rather rarely, anyway; DTS –> AC3 should still work.

The bigger problem is the Java 8 runtime environment. I think I'll try Knoppix to build it from the JDK.

On the whole, this is quite disappointing. NAS is the actual domain for DLNA servers, but Serviio doesn't support it properly, at least not like the Win and Mac versions. Plex is much easier to install on a NAS. (But then it is so clumsy and overloaded, yet lacking essential featues, that you can't actually use it.)

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Sun Feb 01, 2015 8:56 am
by norm
I have managed to create a ejre8_0_u6 using my Windows 7 laptop. Here's how to build the JAVA 8 ejre for ARM v5 (in my case Zyxel NSA 325). I downloaded the Windows 7 Oracle JAVA 8 JDK from http://www.oracle.com/technetwork/java/ ... 33151.html installed the 64bit version in my case (but shouldn't make any dfference).. Then I used 7zip to extract the previously downloaded Oracle Java SE Embedded 8 - ARMv5/ARMv6/ARMv7 Linux - SoftFP ABI to the root of my C drive to folder C:\ejdk1.8.0_06. The important part to get the jrecreate to work is to set the JAVA_HOME environment variable. Open up a cmd prompt, then set the JAVA_HOME variable to your jdk install path eg
  Code:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31\

Once set cd in to the C:\ejdk1.8.0_06\bin then run
  Code:
c:\ejdk1.8.0_06\bin>jrecreate.bat --dest ejre1.8.0_6\ --vm client

If all goes well
  Code:
Building JRE using Options {
    ejdk-home: C:\ejdk1.8.0_06\bin\..
    dest: C:\ejdk1.8.0_06\bin\ejre1.8.0_6
    target: linux_arm_sflt
    vm: client
    runtime: jre
    debug: false
    keep-debug-info: false
    no-compression: false
    dry-run: false
    verbose: false
    extension: []
}


Target JRE Size is 45,729 KB (on disk usage may be greater).
Embedded JRE created successfully

Then copy the resulting "ejre1.8.0_6" folder to your NAS. Once copied across you will need to cd in to the ejre1.8.0_6/bin folder and run chmod +x * to make all of executables executable. Follow NAS Tweaks guide for installing JAVA under FFP. Then check that java is working correctly.
  Code:
# java -version
java version "1.8.0_06"
Java(TM) SE Embedded Runtime Environment (build 1.8.0_06-b23)
Java HotSpot(TM) Embedded Client VM (build 25.6-b23, mixed mode)
Then install Serviio 1.5 as per one of the earlier guides.

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Mon Feb 02, 2015 3:02 pm
by Neumann
GREAT. Thank you so much. I had seen that jrecreate.bat file but I had no idea how to get it running under Win. Now I have Serviio 1.5 up and running on my NAS. The new instant refresh is very nice.

Found 2 oddities also: On the clients, it shows up as "Serviio (localhost.localdomain)", obviously failing to display the actual host name. And in the start file, serviiod.sh, I had to change the line "serv_pid=`ps aux | grep serviio.sh ..." under "status)", to "serv_pid=`ps aux | grep serviio | grep -v grep | awk '{print $2}'`", deleting the ".sh" ending after "serviio", for the status to be displayed properly.

Petty problems. Sure it will work fine. Thanks again.

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Tue Feb 03, 2015 12:44 pm
by norm
Neumann wrote:Found 2 oddities also: On the clients, it shows up as "Serviio (localhost.localdomain)", obviously failing to display the actual host name. And in the start file, serviiod.sh, I had to change the line "serv_pid=`ps aux | grep serviio.sh ..." under "status)", to "serv_pid=`ps aux | grep serviio | grep -v grep | awk '{print $2}'`", deleting the ".sh" ending after "serviio", for the status to be displayed properly.

I found that this thread solves the Serviio(localhost.localdomain) problem. Changing the very top profile (profile 1) seemed to do the trick :).

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Wed Feb 04, 2015 1:22 pm
by Neumann
Thx, I've done that. All right on the clients that take the friendly name. Just for the record, the ServiiDroid app still shows "Serviio (localhost.localdomain)".

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Wed Feb 04, 2015 6:26 pm
by will
Neumann wrote:Thx, I've done that. All right on the clients that take the friendly name. Just for the record, the ServiiDroid app still shows "Serviio (localhost.localdomain)".

ServiiDroid only reads the name when adding a server, it doesn't keep it up to date as it usually does not change. Either edit the server entry in ServiiDroid, or delete and re-add it.

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Thu Feb 05, 2015 8:22 am
by Neumann
Thanks. You're right. :o

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Wed Mar 04, 2015 9:33 pm
by silverfisken
Hi, I've tried building a java8 from jrecreate
But when in win7 dos prompt command: (elevate for admin)
  Code:
c:\ejdk1.8._33\bin>jrecreate.bat --dest ejre1.8.0_33\ --vm client

nothing happens.
It just get to new line with c:\ejdk1.8.0_33\bin

I tested to see the JAVA_HOME path and it's:
  Code:
c:\Program files\Java\jdk1.8.0_33\


What am I doing wrong?

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Sun Mar 08, 2015 9:11 am
by norm
silverfisken wrote:What am I doing wrong?
What happens if you run jrecreate.bat on it's own without any of the command switches?

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Mon Mar 09, 2015 1:51 pm
by silverfisken
norm wrote:What happens if you run jrecreate.bat on it's own without any of the command switches?


Nothing happens.

But now I see that jrecreate.bat is 0 byte. And I tried to open it with notepad and there is no code in the file.

How can this be?

How can I fix this?

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Mon Mar 09, 2015 2:26 pm
by norm
Try using 7zip to extract the files again.

Re: Serviio 1.5 – cannot install b/c no JRE 8 for download

PostPosted: Mon Mar 16, 2015 10:36 am
by silverfisken
Thanks! Now Java is working. I unzipped the javafiles again.

(edited and removed the other questions how to upgrade serviio because you can search for it in this forum)