From: Shawn and Mirtha Pringle <mands@ho...> - 2003-10-28 12:07:11
Because of bug 555974, I think that there is a problem with the way the
jEditLauncher determines java.home . Perhaps we could design a test.
Maybe one could write a bean-script that would iterate through the
environment variables and determine which one is the property
user.home. Is there anyone here who are using Mutiuser Windows Me?
Shawn and Mirtha Pringle wrote:
> Because of bug 555974, I think that there is a problem with the way the
> jEditLauncher determines java.home .
I think you mean "user.home".
Here is the code which retrieves that path:
osver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if(osver.dwPlatformId == VER_PLATFORM_WIN32_NT)
GetEnvironmentVariable("USERPROFILE", szServerPath, MAX_PATH);
else // Win95/98/Me
if(0 == GetEnvironmentVariable("HOME", szServerPath, MAX_PATH))
GetEnvironmentVariable("WINDIR", szServerPath, MAX_PATH);
(Note: If the user manually specifies another user.home via the command
line for starting jedit (configured in the jedinit.exe), then this path
will be used).
So we have the following: USERPROFILE for WinNT/2000/XP, HOME on
96/98/ME or WINDIR if HOME is not available. This actually looks good, I
don't know of any other environment variables for the user home directory.
Well, maybe there is a Windows ME user out there?