Re: Execution directory

Randall R Schulz <[email protected]> Sun, 19 Jan 2003 08:04:08 -0800
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Michael,

I have no problem changing the working directory before starting JSwat. 
That working directory appears to be inherited by the target process if 
JSwat starts the target JVM (not, obviously, if it attaches to an 
already-running program).

I use Windows and usually start JSwat via a shortcut in my Quick-Launch 
bar. I set the "Start in:" directory in that shortcut.

If you launch JSwat via a script, which is surely what I'd do on a Unix 
platform or if I wanted a Cygwin command-line start-up, then unless you 
do something to change the current working directory in the script, the 
current directory at the time you run the script will be inherited by 
the JSwat process (its JVM) when it starts up. With a script, you could 
easily add an option that allows you to set the JSwat working directory 
independent of that in which its started.

Randall Schulz


Michael Bieri wrote:
> Hi
> 
> Is it possible to set the execution directory. I've got an app which is 
> rather picky concerning the startup directory.
> 
> thx
> - Michael