I want to add a functionality in existing projcet if value is found then use
System.setProperty("javaplugin.vm.options","-Xmx512m");
Actually i am getting value -Xmx512m through a variable say a. so how to write this statement
System.setProperty("javaplugin.vm.options",""Xmx"");
I tried to search it on google but din't find it..... Anyone please suggest... Thanks in Advance
You should try
System.setProperty("javaplugin.vm.options","\"-Xmx512m\"");
With the \\
, you can escape the double quotes in Strings so that they appear as double quotes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.