OK, we ran into this as well.  The problem is that on Windows
the CLASSPATH is actually Classpath, mixed case instead
of uppercase.  The pkgIndex.tcl file does not take this into
account.  We have already modified the pkgIndex.tcl file 
to fix this problem, which is available from CVS (just don't
use the 1.2.5 release tag, it's in the main trunk of the code).

-- Scott


Vince Darley wrote:
> 
> After I install jre 1.2.2, tcl8.2.2 and tclblend etc, my code works fine on
> WinNT, but on Win98/95 I get an error while loading tclblend that
> $env(CLASSPATH) doesn't exist, while calling loadtclblend, at:
> 
> split $env(CLASSPATH) ${path_sep}
> 
> Now, given that the class path is set above:
> 
>     if {! [info exists env(CLASSPATH)] } {
>         if {$debug_loadtclblend} {
>             puts "setting env(CLASSPATH) to {}"
>         }
> 
>         set env(CLASSPATH) {}
>     }
> 
> I don't really understand this.
> 
> Oops! Actually, I just remember a posting on comp.lang.tcl from the other
> day.  The setting of an env var to an empty string on some versions of
> Windows actually results in the _unsetting_ of that env var, so that
> explains this problem....  Until this bug is fixed in Tcl, we need to
> replace:
> 
>     if {! [info exists env(CLASSPATH)] } {
>         if {$debug_loadtclblend} {
>             puts "setting env(CLASSPATH) to {}"
>         }
> 
>         set env(CLASSPATH) {}
>     }
> 
> by
> 
>     if {! [info exists env(CLASSPATH)] } {
>         if {$debug_loadtclblend} {
>             puts "setting env(CLASSPATH) to {}"
>         }
> 
>         set env(CLASSPATH) {}
>         # bug in some Windows versions
>         if {![info exists env(CLASSPATH)]} {
>             set env(CLASSPATH) .
>         }
>     }
> 
> This works for me....
> 
> Vince.
> 
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by Scriptics Corporation.
> To subscribe:    send mail to [EMAIL PROTECTED]
>                  with the word SUBSCRIBE as the subject.
> To unsubscribe:  send mail to [EMAIL PROTECTED]
>                  with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'.

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 

Reply via email to