Thanks for the quick answer!

To pick up the java.exe by registry would be great too. I don't want to
care about JAVA_HOME. If user upgrades JRE service should still work. In
case of jvm.dll it will. Why not with java.exe?

Thanks
Michael

On 13.09.2010 17:23, Mladen Turk wrote:
> On 09/13/2010 05:13 PM, Michael Hagedorn wrote:
>>
>>
>>   Hello *,
>>
>> I'm using prunsrv with --Jvm=auto and --StartMode=Java.
>> If I try this on a machine with an out of the box installed JRE6 (no
>> %JAVA_HOME% is set) service startup fails with "Unable to find Java
>> Runtime Environment".
>> If I use --JavaHome and assign JRE directory it works fine but that's
>> what I want to avoid.
>>
>> Do I miss something?
>>
>
> -Jvm=auto is used to find the jvm.dll from the Windows registry.
> --StartMode=java requires bin/java.exe, so it needs JAVA_HOME
> pointing to directory containing bin/java.exe (in your case JRE loc)
> or just use --JavaHome
>
>
>
> Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to