From: | johann at 2ndquadrant(dot)com (Johann 'Myrkraverk' Oskarsson) |
---|---|
To: | |
Subject: | [Pljava-dev] Failed to create Java VM, WinXP |
Date: | 2011-06-24 22:09:09 |
Message-ID: | x6r56ic262.fsf@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
<david.sahagian at emc.com> writes:
> ()
> I added the following entries to the PATH var:
>
> set PATH=%PATH%;C:\Program Files\Java\jre6\bin;C:\Program
> Files\Java\jre6\bin\client
Where do you apply these settings? The PATH with the Java
installation has to be visible to the Postgres process.
Going overly technical on you, the environment variables are cloned
between processes in Unix systems.
Process A sets X=V. It then spawns a new process B. This causes B to
inherit all settings from A, including X=V. Process B sets X=W. On
reading X, process A still has the value V. They are not shared.
Process C spawned from B will now have X=W. It inherits the new
settings from B.
I've been told they behave exactly like this on Windows as well so it
matters a lot where and how the PATH settings are applied so the
Postgres server process, started as a Windows Service will read the
new values.
If you have another scripting language installed, you may be able to
read the server process' environment. Or with a C module.
--
Johann Oskarsson http://www.2ndquadrant.com/ |[]
PostgreSQL Development, 24x7 Support, Training and Services --+--
|
Blog: http://my.opera.com/myrkraverk/blog/
From | Date | Subject | |
---|---|---|---|
Next Message | Johann 'Myrkraverk' Oskarsson | 2011-06-24 22:36:06 | [Pljava-dev] Failed to create Java VM, WinXP |
Previous Message | janardhan.prabhakara at emc.com | 2011-06-24 21:10:01 | [Pljava-dev] Failed to create Java VM, WinXP |