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:
- app.name=JavaHonk
- logging.dir=..\
- environment.target=DEV
- Java class: com.javahonk.TestVM
You could do as below:
java -Dlogging.dir=..\ -Dapp.name=JavaHonk -Denvironment.target=DEV com.javahonk.TestVM
For more information please visit Cygwin documentation here