--Environnement --Windows 10 Pro version 64 bits 1909 - GitBash(mintty 3.1.0) - Payara Server 5.194
$ asadmin create-jvm-options -Djava.io.tmpdir=/c/tmp
remote failure: JVM option /tmp is invalid because it does not start with a '-'
Command create-jvm-options failed.
Tout le monde peut immédiatement remarquer la cause de cela, mais je ne savais pas comment l'écrire dans l'environnement actuel et je l'ai essayé.
#Comme Windows, avec des caractères d'échappement et sans boîte>Pas bien
$ asadmin create-jvm-options -Djava.io.tmpdir=C\:\\tmp\\
remote failure: Escape at EOL
Escape at EOL
Usage: create-jvm-options
[--target <target(default:server)>]
[--profiler[=<profiler(default:false)>]]
[--min-jvm=<version>]
[--max-jvm=<version>]
[-?|--help[=<help(default:false)>]]
(jvm_option_name[=jvm_option_value])[:jvm_option_name[=jvm_option_name]]*
Command create-jvm-options failed.
#Il y a un caractère de boîte avec un caractère d'échappement dans le style Windows>J? ai compris
$ asadmin create-jvm-options -Djava.io.tmpdir='C\:\\tmp\\'
Created 1 option(s)
Command create-jvm-options executed successfully.
#je vérifierai
$ asadmin list-jvm-options | grep tmpdir
-Djava.io.tmpdir=C:\tmp\