Well, what I did as a workaround was to set the system property
"user.dir" in the interp.  Then in my Java portions of the application
that needed to access a file was use:  new File( "name"
).getCanonicalFile().  The 'canonical' methods use the current value of
"user.dir" to resolve the file name.  Seems to work well.  This way I
can run the Jacl 'cd' command and have it apply to the application's
workings.

Any reason not to set "user.dir" in the interp?  I guess the
multi-thread issue is one.  However, in my app which is heavily threaded
I only use one Interp.  I guess I could wrap the system's cd command
with one of my own which set the system property.

Tom


----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
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]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to