Page 1 of 1

Error when running post processing script.

Posted: December 28th, 2009, 9:19 am
by relman
I am running the latest beta5 on Windows 2008 R2 and have come across an issue. I have a network media tank device and have YAMJ setup and I want it to run the commands to refresh the library after each download. When I run the batch file outside of the post processing script it works fine without error.

However when running it as part of the post processing i get the following error.

C:\Program Files (x86)\SABnzbd>D:

D:\>CD \YAMJ-MOVIES

D:\YAMJ-MOVIES>CALL moviejukebox My_Library.xml -o \\NAS\Share\MOVIES
'java' is not recognized as an internal or external command,
operable program or batch file.

I don't get the java error when running these commands from command prompt but I do when from Sabnzbd post processing scripts.

I even added the java bin location to the the PATH environment variables but this never helped either.

Has anyone any ideas?

thanks

Re: Error when running post processing script.

Posted: December 28th, 2009, 9:26 am
by shypike
Did you add Java to the system-wide path?
There are environment variables per account and system-wide.
If you run SABnzbd as a service or a scheduled task, not all normal resources are available.

Re: Error when running post processing script.

Posted: December 28th, 2009, 3:24 pm
by relman
I added the java bin folder to the system wide PATH environment variable. As for Sabnzbd is set to run on startup, on task manager the username for the process is the one which i am logged in under. It is not run as a scheduled task i just leave it running all the time from startup.

Re: Error when running post processing script.

Posted: December 28th, 2009, 6:18 pm
by shypike
The current directory is not the same as when you run it yourself.
You are sure moviejukebox is in the path ?

Add a "set" command to the script so you can see what the
environment of the script is.

Re: Error when running post processing script.

Posted: January 24th, 2010, 10:10 pm
by Pinch
You need to install the 32 bit version of Java

Hope that helps.

Re: Error when running post processing script.

Posted: February 12th, 2010, 5:52 am
by maddness
Thanks for sharing such a nice sharing.it is very useful for all keep it up.i will come back soon.