Skip to main content



      Home
Home » Newcomers » Newcomers » How to switch VM in preferences to another jdk installation?
How to switch VM in preferences to another jdk installation? [message #252370] Tue, 25 March 2008 15:14 Go to next message
Eclipse UserFriend
Originally posted by: marc2.trident.com

On my machine I have two difference Java (J2EE/jdk) installations.

When I go in Eclipse v3.2.2 to the menu

Help->About Eclipse->ConfigurationDetails

then there are two lines which show that Eclipse uses currently the "wrong" installation:

....
-vm
D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1206457579593
eclipse.vm=D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
eclipse.vmargs=-Xms40m
-Xmx256m
....

However I want to use the VM which comes in
D:\java\jdk\bin

Where can I switch (permanently) the VM in Eclipse?

Marc
Re: How to switch VM in preferences to another jdk installation? [message #252381 is a reply to message #252370] Tue, 25 March 2008 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroups.pellaton.li

Hello

There are at least 2 ways to define the JVM to be used:

1. Change the environment variable PATH to include the jvm you want
instead of the other one

2. Start eclipse with the option -vm <path to jvm>

For more information about the latter, please refer to the excellent
Eclipse help system:
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html

Hope that helps

Michael Pellaton



Marc O'Donnell wrote:
> On my machine I have two difference Java (J2EE/jdk) installations.
>
> When I go in Eclipse v3.2.2 to the menu
>
> Help->About Eclipse->ConfigurationDetails
>
> then there are two lines which show that Eclipse uses currently the "wrong" installation:
>
> ...
> -vm
> D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.ee.install.verify=false
> eclipse.product=org.eclipse.sdk.ide
> eclipse.startTime=1206457579593
> eclipse.vm=D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.vmargs=-Xms40m
> -Xmx256m
> ...
>
> However I want to use the VM which comes in
> D:\java\jdk\bin
>
> Where can I switch (permanently) the VM in Eclipse?
>
> Marc
Re: How to switch VM in preferences to another jdk installation? [message #252385 is a reply to message #252370] Tue, 25 March 2008 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Marc O'Donnell wrote:
> On my machine I have two difference Java (J2EE/jdk) installations.
>
> When I go in Eclipse v3.2.2 to the menu
>
> Help->About Eclipse->ConfigurationDetails
>
> then there are two lines which show that Eclipse uses currently the "wrong" installation:
>
> ...
> -vm
> D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.ee.install.verify=false
> eclipse.product=org.eclipse.sdk.ide
> eclipse.startTime=1206457579593
> eclipse.vm=D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.vmargs=-Xms40m
> -Xmx256m
> ...
>
> However I want to use the VM which comes in
> D:\java\jdk\bin
>
> Where can I switch (permanently) the VM in Eclipse?
>
> Marc
Hi Marc. Edit the -vm option in the eclipse.ini file in the top-level
eclipse directory. Here is an Eclipse Wiki article about it:
http://wiki.eclipse.org/Eclipse.ini

Hope this helps. Mark
Re: How to switch VM in preferences to another jdk installation? [message #252412 is a reply to message #252370] Tue, 25 March 2008 19:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Marc O'Donnell" <marc2@trident.com> wrote in message
news:fsbiu2$msr$1@build.eclipse.org...
> Where can I switch (permanently) the VM in Eclipse?


See http://wiki.eclipse.org/Eclipse.ini
Re: How to switch VM in preferences to another jdk installation? [message #252451 is a reply to message #252370] Wed, 26 March 2008 09:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Marc O'Donnell wrote:
> On my machine I have two difference Java (J2EE/jdk) installations.
>
> When I go in Eclipse v3.2.2 to the menu
>
> Help->About Eclipse->ConfigurationDetails
>
> then there are two lines which show that Eclipse uses currently the "wrong" installation:
>
> ...
> -vm
> D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.ee.install.verify=false
> eclipse.product=org.eclipse.sdk.ide
> eclipse.startTime=1206457579593
> eclipse.vm=D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.vmargs=-Xms40m
> -Xmx256m
> ...
>
> However I want to use the VM which comes in
> D:\java\jdk\bin
>
> Where can I switch (permanently) the VM in Eclipse?


See this wiki page: http://wiki.eclipse.org/Eclipse.ini

Note that this only controls the JVM that is used to run Eclipse; that
is separate from the JDK used to build your code and the JVM that is
used to run your applications from inside Eclipse (see Preferences >
Java > Installed JREs for that).

Hope this helps,
Eric
Re: How to switch VM in preferences to another jdk installation? [message #252462 is a reply to message #252370] Wed, 26 March 2008 09:41 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Please take care in cross-posting questions and specifying follow-up
groups. This question got several redundant answers because it was
crioss-posted to 2 groups but had the follow-up set to only one. That
means we all saw the question on the platform group and answered without
seeing that others had already answered (answers were forced to only
eclipse.newcomer because of the Followup-To: header).
Hence, wasted time.

Eric


Marc O'Donnell wrote:
> On my machine I have two difference Java (J2EE/jdk) installations.
>
> When I go in Eclipse v3.2.2 to the menu
>
> Help->About Eclipse->ConfigurationDetails
>
> then there are two lines which show that Eclipse uses currently the "wrong" installation:
>
> ...
> -vm
> D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.ee.install.verify=false
> eclipse.product=org.eclipse.sdk.ide
> eclipse.startTime=1206457579593
> eclipse.vm=D:\ORA\v10.1.3.1\OracleAS_1\jdk\bin\javaw.exe
> eclipse.vmargs=-Xms40m
> -Xmx256m
> ...
>
> However I want to use the VM which comes in
> D:\java\jdk\bin
>
> Where can I switch (permanently) the VM in Eclipse?
>
> Marc
Previous Topic:Configuring Eclipse to use McKoi JDBC drivers?
Next Topic:Remove Scroll Bars from Compartment
Goto Forum:
  


Current Time: Tue Jul 15 03:42:48 EDT 2025

Powered by FUDForum. Page generated in 0.14264 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top