start eclipse with alternative – alternate virtual machine vm

There are times when you need eclipse to use a specific java virtual machine ( a plugin may require it e.g m2eclipse), and you want your sources to be compiled with another java virtual machine.  Or your want to start eclipse with a different virtual machine than the one you have set your JAVA_HOME environmental variable.In order to start eclipse with an alternative java virtual machine you need to pass the -vm argument to your eclipse.exe. Assuming now that you have an eclipse shortcut in your desktop. And that the installation directory of your java is :

C:\dev\java\jdk1.5.0_22

Your write click on your shortcut, then choose properties, and then in the target you type the following:

C:\dev\eclipse\eclipse.exe -vm C:\dev\java\jdk1.5.0_22\bin\javaw.exe

This means that you can have different shortcuts that point on eclipse, where each shortcut can start eclipse with a different virtual machine 🙂

Advertisements

One Response to start eclipse with alternative – alternate virtual machine vm

  1. Clayton says:

    Hi, I do believe this is a great site. I stumbledupon it 😉 I may come back yet again since i have book-marked it.
    Money and freedom is the greatest way to change, may you be rich
    and continue to guide others.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: