Windows paths, Java, and command-line arguments, oh my!
Robert Kern
rkern at ucsd.edu
Mon Sep 19 17:20:37 EDT 2005
Steve M wrote:
> I'm trying to invoke a Java command-line program from my Python program
> on Windows XP. I cannot get the paths in one of the arguments to work
> right.
>
> The instructions for the program describe the following for the
> command-line arguments:
>
> java -jar sforcedataloader.jar -Dsalesforce.config.dir=CONFIG_DIRECTORY
>
> They also give an example:
>
> java -Dsalesforce.config.dir=c:\config -jar sforcedataloader.jar
>
> If I type the example above at the cmd.exe command line the thing works
> (assuming I have the config file in c:\config). What doesn't work is
> these two lines:
>
> cmd = r'java -jar sforcedataloader.jar -Dc:\config'
That's not the same thing as the examples you give above. Namely, you're
missing the "salesforce.config.dir=" which is probably pretty
fundamental to telling the program where the salesforce config dir is.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list