May be you are using PowerShell instead of command prompt. In PowerShell, we need to enclose the argument in double quotes.
java "-Djavax.net.ssl.keyStore=xyz.jks"