Eclipse 3.6.2 failed to create the java virtual machine [message #542715] |
Fri, 25 June 2010 16:55  |
Eclipse User |
|
|
|
My environment:
WindowsXP 32bit
4Giga memory, but only 3 something Giga can be dominated by Windows 32bit
My newly downloaded Eclipse 3.6.2 failed to startup.
Actually,
1) it's working fine with the following eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx256m
2) error message dialog jumps out with the following eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx1024m
However, for my application, I do need a very huge memory, at least more than 1Giga .
So, can anybody give me a hand?
I'm wondering if I don't change the settings in eclipse.ini, but set up the memory requirements in projects arguments?
Best Regards
JIA
[Updated on: Fri, 25 June 2010 16:56] by Moderator Report message to a moderator
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #542792 is a reply to message #542715] |
Sat, 26 June 2010 04:59   |
Eclipse User |
|
|
|
JIA Pei wrote:
>
> My environment:
>
> WindowsXP 32bit
> 4Giga memory, but only 3 something Giga can be dominated by Windows 32bit
>
> 1) working fine with the following eclipse.ini
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vmargs
> -Xms40m
> -Xmx256m
>
>
>
> 2) error message dialog jumps out with the following eclipse.ini
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 1024m
> --launcher.defaultAction
> openFile
> -vmargs
> -Xms40m
> -Xmx1024m
>
>
> However, for my application, I do need a very huge memory, at least
> more than 1Giga .
> So, can anybody give me a hand?
> I'm wondering if I don't change the settings in eclipse.ini, but set up
> the memory requirements in projects arguments?
It sounds like you might be confused by the difference between permgen space and
heap space. You almost certainly do NOT need 1024M of permgen space.
Try setting the permgen space to 256m, and the heap to 1024m.
If you Google for permgen I'm sure you will learn more about the distinction -
if not, respond to this post and I (or others) will clarify.
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #544317 is a reply to message #542792] |
Fri, 02 July 2010 10:49   |
Eclipse User |
|
|
|
Hi, Walter Harley:
Thank you very much for your clear reply.
However, now, my eclipse.ini setting looks like:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms128m
-Xmx1024m
But, still, a dialog jumped out to report
Failed to create Java Virtual Machine.
What should I do?
Best Regards
JIA
|
|
|
|
|
|
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #656702 is a reply to message #656502] |
Mon, 28 February 2011 08:03   |
Eclipse User |
|
|
|
Il 26/02/2011 00:12, r.gangadhar@yahoo.com ha scritto:
> OS is Windows XP 32-bit
> JVM deatils
>
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
It's very strange. So, let's start from the beginning. Restore the
original eclipse.ini, that should be something like this:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
Once it is started, check in Help | About Eclipse Platform |
Installation Details | Configuration that you're actually using JRE
1.6.0_22 (look at the following properties: java.version,
java.runtime.version, java.vendor, java.runtime.name and java.vn.version).
If an error occurs, post here the exact stack trace.
Mauro.
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #656933 is a reply to message #542715] |
Tue, 01 March 2011 04:32   |
Eclipse User |
|
|
|
I had a same problem
version 3.6.1
fix it:
-vm
c:\Java\jre6\bin\javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
c:\Java\jre6\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
[Updated on: Tue, 01 March 2011 04:58] by Moderator Report message to a moderator
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657229 is a reply to message #542715] |
Wed, 02 March 2011 03:33   |
Eclipse User |
|
|
|
Same problem here..
-- Eclipse Helios
I was able to solve the problem by removing the first value of
--launcher.XXMaxPermSize
now my eclipse.ini looks like this.
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_14 00.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R 36x_v20101222
-product
org.eclipse.epp.package.pulsar.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dosgi.framework.extensions=org.eclipse.mtj.core.hooks
-Xms40m
-Xmx512m
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657478 is a reply to message #656702] |
Wed, 02 March 2011 22:22   |
Eclipse User |
|
|
|
Hi Mauro,
Following are the configurations as you told me to give.
java.version=1.6.0_22
java.runtime.version=1.6.0_22-b04
java.vendor=Sun Microsystems Inc.
java.runtime.name=Java(TM) SE Runtime Environment
java.vm.version=17.1-b03
other java configurations.
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\eclipse\plugins/org.eclipse.equinox.launc her_1.1.0.v20100507.jar
java.class.version=50.0
java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed
java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home=C:\Program Files\Java\jre6
java.io.tmpdir=C:\DOCUME~1\garamini\LOCALS~1\Temp\
java.library.path=C:\eclipse;.;C:\WINDOWS\Sun\Java\bin;C:\WI NDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\W INDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v 1.0;C:\Program Files\Intel\WiFi\bin\;C:\Java\jdk1.5.0_22\bin;C:\Program Files\CREDANT\Shield v6.8\;C:\Program Files\QuickTime\QTSystem\;C:\ant\bin;C:\tomcat-6.0.29\bin;C: \jaxb-ri-20091104\bin;C:\ORACLE\product\10.2.0.1\bin;C:\Java \jwsdp-1.4\jwsdp-shared\bin
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_22-b04
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_22
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=17.1-b03
line.separator=
|
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657587 is a reply to message #657565] |
Thu, 03 March 2011 11:10   |
Eclipse User |
|
|
|
On 3/3/2011 3:44 PM, Mauro Molinari wrote:
> Il 02/03/2011 23:22, r.gangadhar@yahoo.com ha scritto:
>> Hi Mauro,
>>
>> Following are the configurations as you told me to give.
>
> Ok, the JRE Eclipse is using is correct. Now, did you restore the
> original eclipse.ini? Do you see errors after starting Eclipse? Can you
> provide the stack traces?
>
> Mauro.
Open help in Eclipse and then look for "JDT Plug-in Developer Guide >
Programmer's Guide > JDT Core > Using the Java Search Engine". This
should get you started with the search engine.
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657589 is a reply to message #657587] |
Thu, 03 March 2011 11:41   |
Eclipse User |
|
|
|
On 3/3/2011 4:40 PM, Deepak Azad wrote:
> On 3/3/2011 3:44 PM, Mauro Molinari wrote:
>> Il 02/03/2011 23:22, r.gangadhar@yahoo.com ha scritto:
>>> Hi Mauro,
>>>
>>> Following are the configurations as you told me to give.
>>
>> Ok, the JRE Eclipse is using is correct. Now, did you restore the
>> original eclipse.ini? Do you see errors after starting Eclipse? Can you
>> provide the stack traces?
>>
>> Mauro.
> Open help in Eclipse and then look for "JDT Plug-in Developer Guide >
> Programmer's Guide > JDT Core > Using the Java Search Engine". This
> should get you started with the search engine.
oops, wrong thread :) Please disregard the last msg.
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657794 is a reply to message #657565] |
Fri, 04 March 2011 05:43   |
Eclipse User |
|
|
|
Hi Mauro,
I changed eclipse.ini as you said. Following are the new content in eclipse.ini. Now i get different error
"The Eclipse executable launcher was unable to locate its companion shared library."
eclipse.ini
-------------------------------------------
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
Looks like path for launcher.library is different from the previous version of eclipse.ini
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 1.R36x_v20100810
so changed to
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R 36x_v20100810
I don't see any error after the change.
Max heap size now shows as 248. Now please tell me how can I increase heap size to 1GB or so.
Thanks
-Gangadhar
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657845 is a reply to message #657794] |
Fri, 04 March 2011 09:53   |
Eclipse User |
|
|
|
Il 04/03/2011 06:43, r.gangadhar@yahoo.com ha scritto:
> Looks like path for launcher.library is different from the previous
> version of eclipse.ini
>
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.
> 1.R36x_v20100810
>
> so changed to
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R 36x_v20100810
Well, this was my fault, my own eclipse.ini is for a 64-bit version of
Windows, so, as you're using a 32-bit one, you did the right by
replacing it with the previous entry you had in your eclipse.ini.
> I don't see any error after the change. Max heap size now shows as 248.
> Now please tell me how can I increase heap size to 1GB or so.
Simply add the following lines to the END of your current eclipse.ini:
-vmargs
-Xmx1024m
As an alternative, you can leave eclipse.ini untouched and start Eclipse
by issuing the following command:
eclipse.exe -vmargs -Xmx1024m
(you might create a dedicated shortcut, for instance).
Mauro.
|
|
|
|
|
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #675474 is a reply to message #656933] |
Tue, 31 May 2011 16:05   |
Eclipse User |
|
|
|
Thanks zoboff. I had same problem (Helios sr2 v3.6.1 on WinXP x36), and adding...
openFile
-vm
c:\Program Files\Java\jre6\bin\javaw.exe
...worked great!
I also had same problem with Adobe Flashbuilder 4.5 (built on Eclipse 3.6.1 platform). I updated the Flashbuilder.ini (C:\Program Files\Adobe\Adobe Flash Builder 4.5\Flashbuilder.ini) to include the same info, and it fixed the problem there too!
|
|
|
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #708851 is a reply to message #542715] |
Wed, 03 August 2011 08:13  |
Eclipse User |
|
|
|
I solved it too the way "Ding" did on 2011-03-01: Delete the first "launcher.XXMaxPermSize"-value
Used with Eclipse Indigo
My eclipse.ini looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
192m
--launcher.defaultAction
openFile
-vm C:\Programme\Java\jdk1.6.0_26\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx512m
|
|
|
Powered by
FUDForum. Page generated in 0.06020 seconds