>>>>> "sebastian" == sebastian spaeth <Sebastian> writes:
sebastian> "David McNab" <[EMAIL PROTECTED]> wrote on
sebastian> 19.4.2001 11:59:30:
>> I've just now modified and recompiled the 'findjava' program.
>> It's checked back into CVS, along with the findjava.exe binary
>>
>> Changes are: 1) 'jview.exe' is no longer recognised as a java
>> interpreter 2) no windows directory will be searched for java
>> interpreters 3) The 'update settings' button is disabled until
>> the directory scan completes.
Rather than brute force searching for an interpreter, you could try
looking in the Windows registry for the setting that *tells* you where
the java runtime is.
http://java.sun.com/j2se/1.3/runtime_win32.html
Gives some information on using the Sun JRE
On my Win2k machine, I've found that
HKLM\Software\Applications\java.exe\shell\open\command =
C:\Program Files\JavaSoft\JRE\1.3.0_01\bin\javaw.exe -jar %1
Sun's JRE 1.3 environment sets
HKLM\Software\JavaSoft\Java Runtime Environment\1.3\JavaHome =
C:\Program FIles\JavaSoft\JRE\1.3.0_02
Presumably the other javas do the same, or barring that, you could
brute force search from C:\Program Files, rather than the root of C:
sebastian> 1) is great and would make 2) already unneccessary, but
sebastian> that's fine for me.
sebastian> 3) was added as additional feature, because the search
sebastian> can take a long time and people should have the
sebastian> possibility to choose as soon as their wished JRE was
sebastian> found, instead of waiting until the last MP3 directory
sebastian> was scanned. So I would rather prefer to enable it as
sebastian> soon as the first java.exe has been found.
--
---------------------------------------------------------------
Adrian Tritschler mailto:[EMAIL PROTECTED]
Microcomputers Group, Tel: +61-3-990-54794
IT Facilities, P.O. Box 28C Fax: +61-3-990-54746
Monash University, Vic, Australia, 3800. Mobile: 0408-145-149
---------------------------------------------------------------
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl