How Add VM parameter Cygwin

How Add VM parameter Cygwin

Here I will how you how to add VM parameters in Cygwin environment for Java Program. Writing java code using any of IDE where you could set VM parameter easily. But passing VM argument in different operating system is little different. To pass VM parameter in Cygwin please see below:

Let’s say if you want to pass below VM parameter:

  • logging.dir=..\
  • Java class: com.javahonk.TestVM

You could do as below:

java -Dlogging.dir=..\ com.javahonk.TestVM

For more information please visit Cygwin documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *