...
Two key thing to keep in mind,
1. You can not mix 32-bit and 64-bit. For example, running Eclipse 32-bit and Java 64-bit will not work.
2. Placement of the -vm option is very important. The -vm option must occur before the -vmargs option
Here is an example of what the eclipse.ini would look like for Windows,
...