I found the solution to this problem-
When you are having problems with the service starting, check the log file-
..\PS3 Media Server\win32\service\wrapper.log
Mine contained something like this-
STATUS | wrapper | 2011/09/27 20:11:13 | --> Wrapper Started as Service
STATUS | wrapper | 2011/09/27 20:11:13 | Java Service Wrapper Community Edition 32-bit 3.5.9
STATUS | wrapper | 2011/09/27 20:11:13 | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2011/09/27 20:11:13 |
http://wrapper.tanukisoftware.comSTATUS | wrapper | 2011/09/27 20:11:13 |
STATUS | wrapper | 2011/09/27 20:11:13 | Launching a JVM...
FATAL | wrapper | 2011/09/27 20:11:13 | Unable to execute Java command. The system cannot find the file specified. (0x2)
FATAL | wrapper | 2011/09/27 20:11:13 | "java" -Djava.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Dstart.service=true -Xmx768m -Djava.library.path="win32/service/" -classpath "win32/service/wrapper.jar;pms.jar" -Dwrapper.key="RlhImrb0NTC-myot" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2496 -Dwrapper.version="3.5.9" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp net.pms.PMS
ADVICE | wrapper | 2011/09/27 20:11:13 |
ADVICE | wrapper | 2011/09/27 20:11:13 | --------------------------------------------------------------------
ADVICE | wrapper | 2011/09/27 20:11:13 | Advice:
ADVICE | wrapper | 2011/09/27 20:11:13 | Usually when the Wrapper fails to start the JVM process, it is
ADVICE | wrapper | 2011/09/27 20:11:13 | because of a problem with the value of the configured Java command.
ADVICE | wrapper | 2011/09/27 20:11:13 | Currently:
ADVICE | wrapper | 2011/09/27 20:11:13 | wrapper.java.command=java
ADVICE | wrapper | 2011/09/27 20:11:13 | Please make sure that the PATH or any other referenced environment
ADVICE | wrapper | 2011/09/27 20:11:13 | variables are correctly defined for the current environment.
ADVICE | wrapper | 2011/09/27 20:11:13 | --------------------------------------------------------------------
ADVICE | wrapper | 2011/09/27 20:11:13 |
FATAL | wrapper | 2011/09/27 20:11:14 | Critical error: wait for JVM process failed
When I installed jre-6u27, it does not add itself to the System Path. This is the path that is used by the service at run time. In order to add java to the System Path-
Computer -> Properties -> Advanced System Settings -> Environment Variables -> System Variables -> Path
Add C:\Program Files\Java\jre6\bin (or whereever you installed java) to this variable.
After that, you should retry running the service.
Hope this helps.