> -----Original Message----- > From: Mo DeJong [mailto:[EMAIL PROTECTED]] > > You are using Tcl blend and Tcl loaded into a JVM right? I get the > feeling Tcl does not know how to find its startup scripts. What > happens when you do a "package require java"? This is strange I have to set the TCL_LIBRARY environment variable. Otherwise, it won't be able to find the startup script. There is no access to Tcl_FindExecutable, which a normal Tcl shell use to find the startup script, in TclBlend. > > Otherwise, it may not work. > > > > set x [java::new String foo] > > java::lock $x <-- may or may not work > > I don't see why you think that "may or may not work". It won't work if Tcl uses the string form for the result from [...]. "set x" and "$x" are executed inside Tcl, not TclBlend. There is no control over what representation is picked by Tcl. This is the cause for the whole mess with the "command not found" we have been discussing lately. -- Jiang Wu [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]'. An archive is available at http://www.mail-archive.com/tcljava@scriptics.com