Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Which vm is really running?
Which vm is really running? [message #244210] Sat, 29 December 2007 04:56 Go to next message
Eclipse UserFriend
Originally posted by: ihatespam.hotmale.com

I have a few JDKs (1.4,1.5,1.6) installed and I'm trying to tell eclipse
(3.3) to run on the 1.5 version. I put the -vm in my Eclipse.ini file as
this:


**ECLIPSE.INI
-clean
-showsplash
com.genuitec.myeclipse.product
--launcher.XXMaxPermSize
256m
-vm C:\DevTools\Java\1.5.0_12\bin
-vmargs
-Xms512m
-Xmx512m
-Dosgi.splashLocation=C:\DevTools\MyEclipse\eclipse\MyEclips eSplash.bmp
-Duser.language=en
-XX:PermSize=512M
-XX:MaxPermSize=512M

I see in the IDE that its picking up the memory args (though it reads 508M
max), but when I look at the config info I see this (among other things):

(...)
-clean
-vm C:\DevTools\Java\1.5.0_12\bin
-vm
C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
(...)
eclipse.vm=C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
eclipse.vmargs=-Xms512m
-Xmx512m
-Dosgi.splashLocation=C:\DevTools\MyEclipse\eclipse\MyEclips eSplash.bmp
-Duser.language=en
-XX:PermSize=512M
-XX:MaxPermSize=512M
(...)
java.home=C:\Program Files\Java\jre1.6.0_03
(...)
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_03-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_03
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.6.0_03-b05
(...)

My PATH is set as:
D:\databases\Oracle10g\home\bin;%SystemRoot%\system32;%Syste mRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Program
Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL
Server\80\Tools\Binn\;c:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\Java\jre1.5.0_12\bin;C:\Program
Files\ATI Technologies\ATI.ACE\

My JAVA_HOME is:
C:\Program Files\Java\jre1.5.0_12

My CLASSPATH is:
;C:\Program Files\Java\jre1.6.0_02\lib\ext\QTJava.zip

Any idea how to tell what's really running? How can I make sure that its
only running 1.5, but keep the 1.6 JDK around to compile and test against?


Thanks!!
Re: Which vm is really running? [message #244217 is a reply to message #244210] Sat, 29 December 2007 05:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"James" <ihatespam@hotmale.com> wrote in message
news:bd70fa57115e3e762396b1d63bf3aec9$1@www.eclipse.org...
>I have a few JDKs (1.4,1.5,1.6) installed and I'm trying to tell eclipse
>(3.3) to run on the 1.5 version. I put the -vm in my Eclipse.ini file as
>this:
>
>
> **ECLIPSE.INI
> -clean
> -showsplash
> com.genuitec.myeclipse.product
> --launcher.XXMaxPermSize
> 256m
> -vm C:\DevTools\Java\1.5.0_12\bin
> -vmargs
> -Xms512m
> -Xmx512m
> -Dosgi.splashLocation=C:\DevTools\MyEclipse\eclipse\MyEclips eSplash.bmp
> -Duser.language=en -XX:PermSize=512M -XX:MaxPermSize=512M
>
> I see in the IDE that its picking up the memory args (though it reads 508M
> max), but when I look at the config info I see this (among other things):
>
> (...)
> -clean
> -vm C:\DevTools\Java\1.5.0_12\bin
> -vm
> C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
> (...)
> eclipse.vm=C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll

The config info is telling the truth.

I think what's going on is that the whitespace in your -vm line is
invalidating that part of your .ini file, and Eclipse is falling back on the
VM that it finds on the path.

Try doing it like this:

-vm
C:\DevTools\[etc.]
-vmargs
-Xms512m
[etc.]
Re: Which vm is really running? [message #244385 is a reply to message #244210] Mon, 31 December 2007 23:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

James wrote:
> I have a few JDKs (1.4,1.5,1.6) installed and I'm trying to tell eclipse
> (3.3) to run on the 1.5 version. I put the -vm in my Eclipse.ini file as
> this:
>
>
> **ECLIPSE.INI
> -clean
> -showsplash
> com.genuitec.myeclipse.product
> --launcher.XXMaxPermSize
> 256m
> -vm C:\DevTools\Java\1.5.0_12\bin

The -vm argument has to point to the vm executable not the directory
that contains the vm. I believe that you have to break the argument
into two separate lines.

Give this a try:
-vm
C:\DevTools\Java\1.5.0_12\bin\javaw.exe


> -vmargs
> -Xms512m
> -Xmx512m
> -Dosgi.splashLocation=C:\DevTools\MyEclipse\eclipse\MyEclips eSplash.bmp
> -Duser.language=en -XX:PermSize=512M -XX:MaxPermSize=512M
>
> I see in the IDE that its picking up the memory args (though it reads
> 508M max), but when I look at the config info I see this (among other
> things):
>
> (...)
> -clean
> -vm C:\DevTools\Java\1.5.0_12\bin
> -vm
> C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
> (...)
> eclipse.vm=C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
> eclipse.vmargs=-Xms512m
> -Xmx512m
> -Dosgi.splashLocation=C:\DevTools\MyEclipse\eclipse\MyEclips eSplash.bmp
> -Duser.language=en
> -XX:PermSize=512M
> -XX:MaxPermSize=512M
> (...)
> java.home=C:\Program Files\Java\jre1.6.0_03
> (...)
> java.runtime.name=Java(TM) SE Runtime Environment
> java.runtime.version=1.6.0_03-b05
> java.specification.name=Java Platform API Specification
> java.specification.vendor=Sun Microsystems Inc.
> java.specification.version=1.6
> java.vendor=Sun Microsystems Inc.
> java.vendor.url=http://java.sun.com/
> java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
> java.version=1.6.0_03
> java.vm.info=mixed mode
> java.vm.name=Java HotSpot(TM) Client VM
> java.vm.specification.name=Java Virtual Machine Specification
> java.vm.specification.vendor=Sun Microsystems Inc.
> java.vm.specification.version=1.0
> java.vm.vendor=Sun Microsystems Inc.
> java.vm.version=1.6.0_03-b05
> (...)
>
> My PATH is set as:
> D:\databases\Oracle10g\home\bin;%SystemRoot%\system32;%Syste mRoot%;%SystemRoot%\System32\Wbem;C:\Program
> Files\ATI Technologies\ATI Control Panel;C:\Program
> Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL
> Server\80\Tools\Binn\;c:\Program Files\Microsoft SQL
> Server\90\Tools\binn\;C:\Program Files\Java\jre1.5.0_12\bin;C:\Program
> Files\ATI Technologies\ATI.ACE\
>
> My JAVA_HOME is:
> C:\Program Files\Java\jre1.5.0_12
>
> My CLASSPATH is:
> ;C:\Program Files\Java\jre1.6.0_02\lib\ext\QTJava.zip
>
> Any idea how to tell what's really running? How can I make sure that its
> only running 1.5, but keep the 1.6 JDK around to compile and test against?
>
>
> Thanks!!
>
>
>
Re: Which vm is really running? [message #244413 is a reply to message #244217] Wed, 02 January 2008 01:05 Go to previous message
Eclipse UserFriend
Originally posted by: ihatespam.hotmale.com

That did it! Thanks!!
Previous Topic:visual editor installation problem
Next Topic:Properties View & Editor
Goto Forum:
  


Current Time: Tue Jul 16 12:25:19 GMT 2024

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

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

Back to the top