Page 1 of 1

Synology NAS Install: Java could not be located

PostPosted: Thu Oct 27, 2011 7:30 pm
by Sheldor73
Hi,

i tried to install serviio on my DS-211+ (DSM 3.2.1944). Following patters to-do-list:

1. activated user home services
2. activated web station
3. downloaded ejre-1_6_0_27-fcs-b07-linux-arm-sflt-eabi-headless-18_jul_2011.tar.gz and gcc421_glibc25_88f628x.tgz to the public folder
3. installed java 6 with java1.6.0_27-88f6281-v3.spk -> no error msgs. Java Embedded SE 6 is shown right next to my Squeezeboxserver as installed (although marked as stopped)
4. i have the youtube.groovy and the serviio0.6.0.1-88f6281-v3.spk in the public folder on the NAS
5. started the spk and then i get a msgbox "Java is not installed or not properly configured. Java binary could not be located..."

What am i doing wrong? Did i miss a step?

Thx for your help.
Chris

Re: Synology NAS Install: Java could not be located

PostPosted: Sat Oct 29, 2011 10:53 am
by Sheldor73
wow. no reply at all? hmm... no one had this this problem before?

Re: Synology NAS Install: Java could not be located

PostPosted: Sat Oct 29, 2011 11:34 am
by themix
I too am having exactly the same problem. I have followed the instructions to the letter but get the following error message when trying to run the java spk;

Java binary bundle not found. I was expecting the file /ejre-1_6_0_27-fcs-b07-linux-arm-sflt-eabi-headless-18_jul_2011.tar.gz.

The java 7 embedded download link (see below) does not work

java1.7.0-88f6281-v3.spk
http://dl.dropbox.com/u/1188556/blog/ja ... 281-v3.spk

Any help greatly appreciated. I too am installing on a DS211j running the latest DSM

Re: Synology NAS Install: Java could not be located

PostPosted: Mon Oct 31, 2011 3:58 pm
by patters
I've fixed that broken link.

Re: Synology NAS Install: Java could not be located

PostPosted: Mon Oct 31, 2011 5:10 pm
by patters
Sheldor73 wrote:Hi,

i tried to install serviio on my DS-211+ (DSM 3.2.1944). Following patters to-do-list:

1. activated user home services
2. activated web station
3. downloaded ejre-1_6_0_27-fcs-b07-linux-arm-sflt-eabi-headless-18_jul_2011.tar.gz and gcc421_glibc25_88f628x.tgz to the public folder
3. installed java 6 with java1.6.0_27-88f6281-v3.spk -> no error msgs. Java Embedded SE 6 is shown right next to my Squeezeboxserver as installed (although marked as stopped)
4. i have the youtube.groovy and the serviio0.6.0.1-88f6281-v3.spk in the public folder on the NAS
5. started the spk and then i get a msgbox "Java is not installed or not properly configured. Java binary could not be located..."

What am i doing wrong? Did i miss a step?

Thx for your help.
Chris


What happens if you telnet/SSH into the NAS and run:
  Code:
echo $JAVA_HOME


It should show /volume1/@appstore/java

The Serviio spk install script checks to make sure that environment variable is not null, then also checks for the existence of the file $JAVA_HOME/bin/java

Did you try restarting the NAS after loading the Java package on? I don't think it's necessary, but worth a try.

Re: Synology NAS Install: Java could not be located

PostPosted: Sun Nov 06, 2011 12:04 am
by AustinSTI
Ok i have the same problem. On my NAS the java home is set correctly, but there is NO Bin directory...only a file called marker.

In fact there is no /volume1/@appstore/java directory. it's /volume1/@appstore/JAVA SE For Embedded with a file called marker.

What's the story?

Re: Synology NAS Install: Java could not be located

PostPosted: Mon Nov 07, 2011 1:14 am
by patters
Hi, which version of the Java package and which DSM version please.
Can you try running:
  Code:
echo "/volume1/@appstore/Java SE for Embedded 7" | sed -r 's/(.*\@appstore).*$/\1\/java/'


This is the line in the install script which should give the folder it will copy Java to. The one with the long name should contain only the marker file. The long name is for the benefit of the Package Center GUI, but the actual java folder path shouldn't contain spaces, hence @appstore/java.

Re: Synology NAS Install: Java could not be located

PostPosted: Sun Nov 20, 2011 1:10 am
by plank10
same problem here and this is the output


echo "/volume1/@appstore/Java SE for Embedded 7" | sed -r 's/(.*\@appstore).*$/\1\/java/'
/volume1/@appstore/java

Re: Synology NAS Install: Java could not be located

PostPosted: Mon Nov 21, 2011 6:19 pm
by patters
Guys, new versions of the Java packages.
Remove the old version, then install via Package Center using the package repository http://pcloadletter.comlu.com, that way you'll get version update notifications.