Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse 3.6.2 failed to create the java virtual machine(Eclipse 3.6.2 failed to create the java virtual machine)
Eclipse 3.6.2 failed to create the java virtual machine [message #542715] Fri, 25 June 2010 16:55 Go to next message
JIA Pei is currently offline JIA Pei
Messages: 49
Registered: September 2009
Member

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



Welcome to Vision Open
http://www.visionopen.com

[Updated on: Fri, 25 June 2010 16:56]

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 Go to previous messageGo to next message
Walter Harley is currently offline Walter Harley
Messages: 847
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
JIA Pei is currently offline JIA Pei
Messages: 49
Registered: September 2009
Member


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



Welcome to Vision Open
http://www.visionopen.com
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #544337 is a reply to message #544317] Fri, 02 July 2010 12:12 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam Kandula
Messages: 444
Registered: July 2009
Senior Member
Try running eclipsec.exe from command prompt! You may get some clue. Also try using a different jvm - Look at http://wiki.eclipse.org/Eclipse.ini for instructions to specify a different jvm.
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #628890 is a reply to message #542715] Fri, 24 September 2010 15:37 Go to previous messageGo to next message
JeeShen Lee is currently offline JeeShen Lee
Messages: 1
Registered: September 2010
Junior Member
I come across the same problem and have fix it by modifying the ecclipse.ini file. Check the link below for more information.

http:// jeeshenlee.wordpress.com/2010/09/24/eclipse-failed-to-create -java-virtual-machine/

Thanks.

Regards,
JeeShenLee
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #655301 is a reply to message #542715] Sat, 19 February 2011 05:23 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
Hi

I tried to change -Xmx1024m, which failed to create Java Virtual Machine. I followed http:// jeeshenlee.wordpress.com/2010/09/24/eclipse-failed-to-create -java-virtual-machine/. this time it started but throwing "java.lang.OutOfMemoryError: PermGen space"

Thanks
-Gangadhar
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #655302 is a reply to message #542715] Sat, 19 February 2011 05:23 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
Hi

I tried to change -Xmx1024m, which failed to create Java Virtual Machine. I followed http:// jeeshenlee.wordpress.com/2010/09/24/eclipse-failed-to-create -java-virtual-machine/. this time it started but throwing "java.lang.OutOfMemoryError: PermGen space"

Thanks
-Gangadhar
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #655461 is a reply to message #655302] Mon, 21 February 2011 09:33 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro Molinari
Messages: 278
Registered: July 2009
Senior Member
Il 19/02/2011 06:25, r.gangadhar@yahoo.com ha scritto:
> Hi
>
> I tried to change -Xmx1024m, which failed to create Java Virtual
> Machine. I followed http://
> jeeshenlee.wordpress.com/2010/09/24/eclipse-failed-to-create
> -java-virtual-machine/. this time it started but throwing
> "java.lang.OutOfMemoryError: PermGen space"

This is because the suggestion at
http://jeeshenlee.wordpress.com/2010/09/24/eclipse-failed-to -create-java-virtual-machine/
is NOT a good suggestion, because it is removing the setting of the
PermGen space.

What is you OS? Is it 32-bit or 64-bit?
What is the JRE you're using to run Eclipse? Is it 32-bit or 64-bit?
Which version?

Mauro.
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #656502 is a reply to message #655461] Fri, 25 February 2011 23:12 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
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)
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 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro Molinari
Messages: 278
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
zoboff  is currently offline zoboff
Messages: 1
Registered: March 2011
Junior Member
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]

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 Go to previous messageGo to next message
Ding  is currently offline Ding
Messages: 1
Registered: March 2011
Junior Member
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 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
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 #657565 is a reply to message #657478] Thu, 03 March 2011 10:14 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro Molinari
Messages: 278
Registered: July 2009
Senior Member
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.
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 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak Azad
Messages: 545
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak Azad
Messages: 545
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
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 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro Molinari
Messages: 278
Registered: July 2009
Senior Member
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 #657981 is a reply to message #657845] Fri, 04 March 2011 19:12 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
Once I add vmargs in my eclipse.ini it throws me error. "Failed to create Java Virtual Machine."
-vmargs
-Xmx1024m

I also tried with args passing to shortcut it didnt increase the heap size.

Is this a bug Or am I unable to configure it good.

-Gangadhar
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #657983 is a reply to message #657845] Fri, 04 March 2011 19:21 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
I did also tried by issuing the following command:
eclipse.exe -vmargs -Xmx1024m, it didn't work it gave the the same error "Failed to create Java Virtual Machine."

-Gangadhar
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #658375 is a reply to message #657983] Tue, 08 March 2011 09:14 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro Molinari
Messages: 278
Registered: July 2009
Senior Member
Il 04/03/2011 20:21, r.gangadhar@yahoo.com ha scritto:
> I did also tried by issuing the following command:
> eclipse.exe -vmargs -Xmx1024m, it didn't work it gave the the same error
> "Failed to create Java Virtual Machine."
>
> -Gangadhar

Try to use -Xmx768m instead of -Xmx1024m.
The problem may be your system has not enough contiguous free memory to
reserve to the JRE.

You might search in Google pages like the following one:
http://stackoverflow.com/questions/171205/java-maximum-memor y-on-windows-xp

Mauro.
Re: Eclipse 3.6.2 failed to create the java virtual machine [message #658539 is a reply to message #658375] Tue, 08 March 2011 21:21 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 8
Registered: February 2011
Junior Member
Hi

Thanks for the reply, -Xms900m works.

Thanks
-Gangadhar

Re: Eclipse 3.6.2 failed to create the java virtual machine [message #662227 is a reply to message #657229] Tue, 29 March 2011 18:59 Go to previous messageGo to next message
Jesse Blasengame is currently offline Jesse Blasengame
Messages: 1
Registered: March 2011
Junior Member
This solved my problem, very simple fix.
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 Go to previous messageGo to next message
Aaron  is currently offline Aaron
Messages: 1
Registered: May 2011
Junior Member
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 Go to previous message
Knue  is currently offline Knue
Messages: 1
Registered: August 2011
Junior Member
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
Previous Topic:Eclipse (with JSF) code assistance (auto code hinting) problem
Next Topic:what kind of application is this?
Goto Forum:
  


Current Time: Fri Oct 31 15:16:22 GMT 2014

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

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