Page 1 of 2

New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sat Dec 26, 2009 9:14 pm
by zack832
Came across a posting that Serviio works with the Samsung DNLA TV's, and hating the Samsung server I decided to try Serviio. I'm running Win 7 on a 64 bit platform. I updated Java, and it is installed correctly. Every time I click on Serviio I get an error message, and I have no idea how to define where Java is since I never get to the console.

Help!!!

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sat Dec 26, 2009 11:36 pm
by zack832
Just an update, the server is apparently running, Serviio shows up on my Samsung TV. However no matter what I do I can't get into the console.....

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Dec 27, 2009 10:49 am
by zip
Check that the Windows service is running.
Then you can run the console by either executing ServiioConsole.exe (which runs as a part of Windows start), but this seems to cause you troubles. There is also a serviio-console.bat file, try that instead of the .exe.

Setting an environment variable JAVA_HOME pointing to your Java installation location (something like: c:\Program Files\Java\jre1.6.0_07\ ) should also solve the problem.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Dec 27, 2009 8:38 pm
by SiegeX
I got that same error as well on 64bit Windows7. Find and install the 64bit JDk, it's called jdk-6u17-windows-x64.exe. That fixed the error right up.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Thu Dec 31, 2009 7:29 am
by zack832
Thanks, I'll try that. The program has been working but I have to click on each file in the.bat folder to get it to run. I rarely reboot so once it's up and running I'm good. I'm downloading the java program now, I'll run it and see how well it works....

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Jan 03, 2010 12:12 am
by zack832
Thanks all, it's working fine now...

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun May 02, 2010 8:59 am
by philokokus
SiegeX wrote:I got that same error as well on 64bit Windows7. Find and install the 64bit JDk, it's called jdk-6u17-windows-x64.exe. That fixed the error right up.


Hi
I am new to all this. I have installed it but still the consolo can't find it.
Any Help Please.

Best Regards
Jose

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Wed May 05, 2010 5:39 pm
by philokokus
zip wrote: Setting an environment variable JAVA_HOME pointing to your Java installation location (something like: c:\Program Files\Java\jre1.6.0_07\ ) should also solve the problem.


how do I do that?

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Wed May 05, 2010 9:18 pm
by zip
Do you have 64bit Windows? Try uninstalling all Java you have on your PC and installing the 64bit again. If it doesn't work, uninstall the 64bit java and try to install 32bit Java instead.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sat May 08, 2010 2:55 pm
by philokokus
zip wrote:Do you have 64bit Windows? Try uninstalling all Java you have on your PC and installing the 64bit again. If it doesn't work, uninstall the 64bit java and try to install 32bit Java instead.


Done that but still not working.
I have a 64bit window7

Tks

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sat May 08, 2010 4:23 pm
by fizze
Just install the 32bit Java Runtime and you should be fine. Be sure to get rid of the 64bit stuff first.
That did the trick on my win7 x64.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Wed May 19, 2010 10:08 am
by gismo31
hi, i've got the same problem ! i tried to install several times the JAVA program but no way ... I'm using windows 7 64 bit. PS3 media player works so javi is installed. any help ?

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Fri Jun 04, 2010 7:02 am
by gismo31
still not solved with the 0.4 version : when i install, servia says : no java and it installs java after dowlonading. then it says program installed. when i run servio, i still got the same error message :o :twisted: :evil:

when i go on java.com, and check if java is installed : Version 6 Update 20 installed ???

please help !!!

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Fri Jun 04, 2010 8:18 am
by zip
I'll look into it a bit more. In the meantime you can use the .bat files located in the bin directory instead of the .exe (I presume for both, server and console).

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sat Jun 05, 2010 12:22 pm
by gismo31
hi, thanks for the answer. servio.bat doesnt work either : it says javaw not found. ps3mediaplayer works and is also based on java. I'm using windows 7 64 bit.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sat Jun 05, 2010 4:32 pm
by zip
Create environment variable JAVA_HOME pointing to your java installation directory, mine is

  Code:
C:\Program Files\Java\jdk1.6.0_18\


and restart your PC. If you want the .bat to work you have to add the variable to your PATH environment variable, e.g.

  Code:
...existing path entires...;%JAVA_HOME%\bin

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Jun 06, 2010 5:32 am
by gismo31
hi, javaw is located in C:\Program Files (x86)\Java\jre6\bin

can you please explain how i can Create environment variable JAVA_HOME pointing to your java installation directory, and add the path to servio.bat ? i'm not goog at this stuff.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Jun 06, 2010 6:21 am
by Sopmod
gismo31 wrote:
can you please explain how i can Create environment variable JAVA_HOME pointing to your java installation directory, and add the path to servio.bat ? i'm not goog at this stuff.



Hey there, I added:

SET PATH=C:\Program Files (x86)\Java\jre6\bin
SET JAVA_HOME=C:\Program Files (x86)\Java\jre6\bin

to the top of my *.bat files as the second and third entries in the files. Like this:

--------------------------------------------------------------------
@echo off

SET PATH=C:\Program Files (x86)\Java\jre6\bin
SET JAVA_HOME=C:\Program Files (x86)\Java\jre6\bin

set BATCH_FILE=%~dp0

*Rest of the file*
--------------------------------------------------------------------

Now it works and I can try Serviio.

To the developer. You HAVE to make installation a no brainer. It must just work. This is a major requirement to get right regardless of the maturity of the software. Non technical people just will not try to solve these issues and you'll lose a user base member.

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Jun 06, 2010 9:26 am
by gismo31
yippie this works !!! thanks alot :D :D :D

i've to select servioconsole.bat to make it work ( *.exe doenst work ) but great news !

i hope the developper will change this soon !

Re: New install error:Please Define EXE4_JAVA_HOME

PostPosted: Sun Jun 06, 2010 12:34 pm
by zip
If you add it to the .bat it will not work with the .exe. You should add it to your Windows env variables, like this (this is for WIndows 7): http://www.itechtalk.com/thread3595.html

This problem doesn't appear for most users, for some reason the Java installation doesn't register itself properly for some of you guys.