From: Sebastien P. <Seb...@is...> - 2001-09-21 12:45:08
|
Mark Robinson wrote: > Thanks!! I guess the java/jython way to do this is store the path > and use the full path when writing files, rather than switching > directories. It was probably bad practice anyhow ;), I exhibit lots > of that. > > It does seem strange that java doesn't have these capabilities, > is it due to security do you know? Well, I don't think it is a "security feature", because applets cannot do what an application can do. As I've said you can set a property in the JVM (something like "java.currentPath"), actually the Ant build tool surely uses that when it runs a new program- maybe you could post on their mailing list... but I'm curious to know why Sun hasen't put a changeCurrentDir in the System class ;) Cheers, -- Sebastien. |