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]'. 

Reply via email to