I've discovered how java.exe used registry (using Registry Monitor by
www.sysinternals.com).

2.72277901 java.exe:1676 OpenKey HKLM\Software\Microsoft\Windows
NT\CurrentVersion\Diagnostics NOTFOUND
2.72469406 java.exe:1676 OpenKey HKLM\Software\JavaSoft\Java Runtime
Environment SUCCESS Key: 0xE2479FE0
2.72476027 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\CurrentVersion SUCCESS "1.3"
2.72480972 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\CurrentVersion SUCCESS "1.3"
2.72485833 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\CurrentVersion SUCCESS "1.3"
2.72490330 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\CurrentVersion SUCCESS "1.3"
2.72499214 java.exe:1676 OpenKey HKLM\Software\JavaSoft\Java Runtime
Environment\1.3 SUCCESS Key: 0xE2660540
2.72504830 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\1.3\JavaHome SUCCESS "C:\Program
Files\Borland\JBuilder5\jdk1.3\jre"
2.72510026 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\1.3\JavaHome SUCCESS "C:\Program
Files\Borland\JBuilder5\jdk1.3\jre"
2.72515138 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\1.3\JavaHome SUCCESS "C:\Program
Files\Borland\JBuilder5\jdk1.3\jre"
2.72520111 java.exe:1676 QueryValue HKLM\Software\JavaSoft\Java Runtime
Environment\1.3\JavaHome SUCCESS "C:\Program
Files\Borland\JBuilder5\jdk1.3\jre"
2.72529665 java.exe:1676 CloseKey HKLM\Software\JavaSoft\Java Runtime
Environment SUCCESS Key: 0xE2479FE0
2.72536258 java.exe:1676 CloseKey HKLM\Software\JavaSoft\Java Runtime
Environment\1.3 SUCCESS Key: 0xE2660540

First of all it loked for HKLM\Software\JavaSoft\Java Runtime
Environment\CurrentVersion and then used the same keys in registry. Not
1.3.1 keys.
When I set CurrentVersion in registry 1.3.1 I got
C:\Program Files\Borland\JBuilder5>java.exe -version
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.3.1', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.

One way to force java.exe to use 1.3.1 installation is edit registry
(cyhange 1.3.1 keys to 1.3).
May be there are other ways to do it?
Thank you.

Sincerely,
Dmitry Guralnik

EMail:   [EMAIL PROTECTED]

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to