"Failed to create the Java Virtual Machine."..huh? [message #668086] |
Tue, 03 May 2011 13:08  |
Eclipse User |
|
|
|
Ok..I installed Eclipse and it worked fine..then I downloaded the MacOSx 10.6.7 system update and now when I try to open Eclipse, I get the message:
"Failed to create the Java Virtual Machine"
I've done some research and everyone says that you have to modify the eclipse.ini file but there isn't any one correct modification..I mean, I copy what their eclipse.ini file looks like but then I just start to get all kinds of different error messages.
This is what my eclipse.ini file looks like after the eclipse installation without any modification done to it:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20 101122_1400.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x 86_64_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
Sooooo what am I supposed to do? I can't believe this company makes a program, and when it has bugs or crashes the only way someone can help is by randomly posting to a forum and just pray someone replies??
Well...PLEASE HELP SOMEBODY!!!! Thanks
-----
Moderator here.
Most of the advice in this thread is bad, misguided. Some of these hacks might work temporarily or on certain machine configurations, but the contents of eclipse.ini are not trivial nor arbitrary.
For the authoritative reference, see this wiki page that explains the contents of the file. Also note the See Also links at the bottom of that page for more details about things like heap size, etc.
DO NOT delete eclipse.ini, EVER. It is also inadvisable to remove the -vm or Xmx options. If you do, you're asking for trouble.
[Updated on: Wed, 07 June 2017 09:57] by Moderator
|
|
|
|
|
|
Re: "Failed to create the Java Virtual Machine."..huh? [message #794406 is a reply to message #668086] |
Thu, 09 February 2012 03:45   |
Eclipse User |
|
|
|
Hi,
I had the same problem and found this discussion, and it really didn't help me at all, because "No real name" actually found his own solution and didn't post it here, just communicated his achievement and left.
I solved my problem adding this command line in my eclise.ini file:
-vm C:\Program Files\Java\jre6\bin\javaw
This bug happened because I installed JRE7 and my eclipse.ini didn't specify the JVM used. In this case, I suppose that eclipse looks for the most recent and tries to start with it. (I also tried inserting the command line for the JRE7, but the error still appeared)
In my case, the correct JVM version was 6, but in other cases it may depend on how the eclipse is installed. The real problem here I suppose it was the installation of another version of JVM, that eclipse wasn't configured for.
I hope this helps someone
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06422 seconds