[JAVA] What to do when is invalid because it does not start with a'-'

--Environment --Windows 10 Pro 64bit version 1909 - GitBash(mintty 3.1.0) - Payara Server 5.194

Event: I was angry trying to set a path to Payara's JVM options

$ 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.

Cause: The path is written incorrectly

Anyone can immediately notice the cause of this, but I didn't know how to write it in the current environment and tried it.

#Windows-like, without the enclosing character with escape characters>No good
$ 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)>]
Command create-jvm-options failed.

Correspondence: Enclose in single quotation marks and write with escape characters in Windows style

#Windows-like enclosing character with escape character>I got it
$ asadmin create-jvm-options -Djava.io.tmpdir='C\:\\tmp\\'
Created 1 option(s)
Command create-jvm-options executed successfully.

#I will check
$ asadmin list-jvm-options | grep tmpdir

Recommended Posts

What to do when is invalid because it does not start with a'-'
Bluemix Infrastructure VPN does not connect because it does not support NPAPI! What to do when [Mac]
[Grails] Error occurred running What to do when the Grails CLI does not start
What to do when a javax.el.PropertyNotWritableException occurs
[Rails] What to do when rails s does not respond or does not stop
[Rails] What to do when the view collapses when a message is displayed with the errors method
[NetBeans] Story when it does not start
What to do if the app is not created with the latest Rails version installed when rails new
What to do when javax.el.ELException: Not a Valid Method Expression: appears when the JSF screen is displayed
[IOS] What to do when the image is filled with one color
Notes on what to do when EC2 is set up with t2.micro
What to do when debugging "Source not found"
What to do if you get Application with name appName is already registered. When you try to start GlassFish
What to do if zip dies if there is a pom when making an executable jar with gradle
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do when you want to delete a migration file that is "NO FILE"
What to do when rails db: seed does not reflect in the database
What to do when JSF tags do not become HTML
What to do when a null byte error occurs
What to do when rails creates a 〇〇 2.rb file
Error ExecJS :: RuntimeUnavailable: What to do when it occurs
ParseException: What to do when Unparseable date is reached
When the server does not start with rails s
What to do if you get an "A server is already running." Error when you try to start the rails server
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
What to do when routing settings do not work after building Docker environment with Laravel
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if the breakpoint is shaded and does not stop during debugging
What to do when it becomes Unable to find CDI BeanManager.
What to do when Method not found in f: ajax
What to do if audio is not available on discordrb
What to check when rails db: migration does not pass
How to get the log when install4j does not start
When a breakpoint is set in IntelliJ IDEA but it does not stop in debugging [Gradle]
What to do if you installed Ruby with rbenv but the version does not change
What to do when a could not find driver appears when connecting to a DB in a Docker environment
What to do when Rails on Docker does not reflect controller changes in the browser
Container does not start with docker-compose
What to do when javax.batch.operations.JobStartException occurs
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
[Rails] What to do if data is not registered in DB
What to do when the changes in the Servlet are not reflected
What I did when the DB did not start with docker-compose up
6 points to doubt when user registration is not possible with devise
What to do when you become a Problem During Content Assist
What to do when you run into a docker-compose node_modules problem
[Rails 5] [Turbolinks] What to do when JS does not work due to page transition or browser back
What to do about the "cannot be read or is not a valid ZIP file" error
How to interact with a server that does not crash the app
What to do if the background image is not applied after deployment
What to do if the prefix c is not bound in JSP
What to do when CentOS cannot be started with VirtualBox on Catalina
What to do when "npm ERR! Code ENOSELF" is displayed after npm install
I want to summarize Apache Wicket 8 because it is a good idea
When calling sshpass from Java with shell etc., it seems that it is necessary to have a path.
What to do if tomcat process remains when tomcat is stopped in eclipse
What to do when undefined method ʻuser_signed_in?'
What to do when "call'Hoge.connection' to establish a connection" appears on rails c
What I checked when I installed Docker Hub in a Windows 10 home environment but it did not start
Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12