-vm argument is useful for passing virtual machine to the eclipse.ini. Mostly this will be used where your system configured Java is different and you wanted to pass different version of java version to the eclipse.
Please follow below link from eclipse
https://wiki.eclipse.org/Eclipse.ini
Example: In windows
Example: In Mac OS X
This argument should always before the -vmargs arguments and -vm and parameter value should specified in different lines.
In Mac OS X, some times this is not working. Even though we have specified in the eclipse.ini file, eclipse launcher is always taking the different jvm.
To resolve this issue, please follow the proposed solution in the below link
http://stackoverflow.com/questions/10352715/how-do-i-run-eclipse-using-oracles-new-1-7-jdk-for-the-mac
Please follow below link from eclipse
https://wiki.eclipse.org/Eclipse.ini
Example: In windows
-vm C:\Java\JDK\1.6\bin\javaw.exe
Example: In Mac OS X
-vm /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
This argument should always before the -vmargs arguments and -vm and parameter value should specified in different lines.
In Mac OS X, some times this is not working. Even though we have specified in the eclipse.ini file, eclipse launcher is always taking the different jvm.
To resolve this issue, please follow the proposed solution in the below link
http://stackoverflow.com/questions/10352715/how-do-i-run-eclipse-using-oracles-new-1-7-jdk-for-the-mac