Bad param=value pair on command line:
Added by Anonymous over 16 years ago
Legacy ID: #5007444 Legacy Poster: Jon Gallegos (jvgallegos)
I am getting the following error Bad param=value pair on command line: -xsl:GMSiPDHPLM My command line looks like this java -jar saxon9.jar net.sf.saxon.Transform -s:\Mmpnas02/gms_caddata/ECRF/PLMi/PDH.xml -xsl:GMSiPDHPLM -o:\Mmpnas02/gms_caddata/ECRF/PLMi/PLM.xml The source and target files are on a NAS directory, the stylesheet and the script I am running is currently in th same directory. I have searched and seen in this forum similar errors, but they were old version of saxon and the resolutions did not seem to change my outcome.
Replies (3)
Please register to reply
RE: Bad param=value pair on command line: - Added by Anonymous over 16 years ago
Legacy ID: #5007538 Legacy Poster: Michael Kay (mhkay)
"Bad param=value pair on command line" is a rather general-purpose message that means the command line parser has got to the end of the command line and can't decipher things. In this case it's caused by the fact that you shouldn't have both "-jar saxon9.jar" and "net.sf.saxon.Transform" on the command line - if you use the class name then you should use -cp rather than -jar. Michael Kay
RE: Bad param=value pair on command line: - Added by Anonymous over 16 years ago
Legacy ID: #5007692 Legacy Poster: Jon Gallegos (jvgallegos)
I made the change you suggested and now I get this error The java class is not found: net.sf.saxon.transform
RE: Bad param=value pair on command line: - Added by Anonymous over 16 years ago
Legacy ID: #5014517 Legacy Poster: David Lee (daldei)
Sure you typed net.sf.saxon.Transform not net.sf.saxon.transform ? e.g. java -cp saxon9.jar net.sf.saxon.Transform ... and presumably saxon9.jar is in the current directory ?
Please register to reply