Eclipse错误:“未能创建Java虚拟机”

时间:2021-09-23 23:08:54

I am getting this error message when I start Eclipse Helios on Windows 7:

当我在Windows 7上开始Eclipse Helios时,我收到了这个错误信息:

Failed to create the Java Virtual Machine

未能创建Java虚拟机。

Eclipse错误:“未能创建Java虚拟机”

My eclipse.ini looks as follows:

我的eclipse。ini看起来如下:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-vm
P:\Programs\jdk1.6\bin
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms120m
-Xmn100m
-Xmx1024m

My JAVA_HOME is correctly set as far as I can tell. How can I fix this?

就我所知,我的JAVA_HOME是正确设置的。我怎么解决这个问题?

Things I have tried so far:

  1. Adding the full path to javaw.exe -vm P:\Programs\jdk1.6\bin\\bin\javaw.exe
  2. 添加到javaw的完整路径。exe vm P:\程序\ jdk1.6 \ bin \ \ bin \ javaw.exe
  3. Removing the -vm option altogether
  4. 完全删除-vm选项。
  5. Removing --launcher.XXMaxPermSize fixes the issue, but it causes permgen errors
  6. 删除——发射器。XXMaxPermSize修复这个问题,但是它会导致permgen错误。
  7. Removing the value 512 of --launcher.XXMaxPermSize fixes the issue, but it causes permgen errors
  8. 删除-启动器的值512。XXMaxPermSize修复这个问题,但是它会导致permgen错误。
  9. Reducing -Xmx to 512m also fixes the issue.
  10. 减少-Xmx到512m也解决了这个问题。

Why can I not use '1024m' for '-Xmx' and '--launcher.XXMaxPermSize'?

为什么我不能使用'-Xmx'和'- launcher.XXMaxPermSize'的'1024m' ?

33 个解决方案

#1


70  

Try removing the -vm P:\Programs\jdk1.6\bin lines.

尝试删除-vm P:\程序\jdk1.6\bin行。


Also, a general recommendation: set -Dosgi.requiredJavaVersion=1.6, not 1.5.

另外,一般建议:set - dosgi.requiredjav= 1.6,而不是1.5。

#2


279  

1. Open the eclipse.ini file from your eclipse folder,see the picture below.

1。打开eclipse。来自eclipse文件夹的ini文件,请参见下面的图片。

Eclipse错误:“未能创建Java虚拟机”

2. Open eclipse.ini in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Now change the default value 256m (or 1024m) to 512m. You also need to give the exact java installed version (1.6 or 1.7 or other).

2。打开eclipse。在记事本或任何其他文本编辑器应用程序中,找到line -Xmx256m(或-Xmx1024m)。现在将默认值256m(或1024m)更改为5.12 m。您还需要给出确切的java安装版本(1.6或1.7或其他版本)。

Eclipse错误:“未能创建Java虚拟机”

Like This:

是这样的:

-Xmx512m
-Dosgi.requiredJavaVersion=1.6

OR

-Xmx512m
-Dosgi.requiredJavaVersion=1.7

OR

-Xmx512m
-Dosgi.requiredJavaVersion=1.8

Then it works well for me.

这对我来说很有效。

#3


100  

Try to add

尝试添加

-vm
D:\Java\jdk1.6.0_29\bin\javaw.exe

FYI: Refer sunblog

供参考:参考sunblog

For others who might have problems with Java 7, as per Eclipse Wiki - eclipse.ini vm_value (windows example)

对于其他可能存在Java 7问题的人,如Eclipse Wiki Eclipse。ini vm_value(windows)

This might not work on all systems. If you encounter "Java was started but returned exit code=1" error while starting the eclipse, modify the -vm argument to point to jvm.dll

这可能不适用于所有系统。如果在启动eclipse时遇到“Java was started but return exit code=1”,请修改-vm参数以指向jvm.dll。

e.g.

如。

-vm
C:\Program Files\Java\jre7\bin\client\jvm.dll

Also note that

还要注意,

The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM

vm选项必须在-vmargs选项之前发生,因为-vmargs的所有内容都直接传递给JVM。

#4


26  

I know this is pretty old now but I have just had the same issue and the problem was I was allocating to much memory to eclipse that it could not get hold of. So open eclipse.ini and lower the amount of memory that is being allocated to -Xmx XXMaxPermSize I changed mine to -Xmx512m and XXMaxPermSize256m

我知道现在已经很老了,但我刚刚遇到了同样的问题,问题是我把很多内存都分配给了它无法获得的eclipse。所以打开eclipse。ini和将被分配给-Xmx XXMaxPermSize的内存减少到-Xmx512m和XXMaxPermSize256m。

#5


18  

  1. Open the eclipse.ini file from your eclipse folder.

    打开eclipse。来自eclipse文件夹的ini文件。

  2. It has some of add on configuration . Find the line –launcher.XXMaxPermSize. Now remove the the default value 256m and save it.

    它有一些附加的配置。找到-launcher.XXMaxPermSize。现在删除默认值256m并保存它。

#6


17  

I removed eclipse.ini. I encountered this issue and removing the ini file solved it.

我eclipse.ini删除。我遇到这个问题并删除了ini文件。

#7


9  

  1. Open folder with Eclipse.exe and find eclipse.ini file
  2. 与Eclipse打开文件夹。exe,找到eclipse。ini文件
  3. Replace -vmargs by your current real path of javaw.exe: *-vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe”*

    用当前javaw的实际路径替换-vmargs。exe:* vm“c:\ Program Files \ Java \ jdk1.7.0_07 \ bin \ javaw.exe”*

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
    -product
    com.android.ide.eclipse.adt.package.product
    --launcher.XXMaxPermSize
    256M
    -showsplash
    com.android.ide.eclipse.adt.package.product
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    **-vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe”** 
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx768m
    -Declipse.buildId=v21.1.0-569685
    

#8


8  

You can also solve this issue by removing the value "256m" under the line "-launcher.XXMaxPermSize”.

您还可以通过删除“-launcher.XXMaxPermSize”下的“256m”值来解决这个问题。

#9


7  

I found a very easy solution for this. Just delete eclipse.ini file, but backup first. I had this same problem many times and finally I deleted this and I no more have the problem.

我找到了一个很简单的解决方法。只是删除eclipse。ini文件,但先备份。我有很多次同样的问题,最后我删除了这个问题,我不再有问题了。

It also increased loading time. Now my Eclipse starts faster than earlier.

它也增加了加载时间。现在我的Eclipse开始比以前更快了。

#10


6  

In STS.conf file you need to check two important things to avoid create/allocate jvm issue

在STS。conf文件需要检查两个重要的东西,以避免创建/分配jvm问题。

1. Give the exact jdk install location:

1。给出确切的jdk安装位置:

--vm C:\Program Files\Java\jdk1.7.0_01\jre\bin\javaw.exe

2. You need to give the exact java installed version:

2。您需要给出确切的java安装版本:

--Dosgi.requiredJavaVersion=1.7

3. Try to reduce the memory size:

3所示。试着减少内存大小:

--XX:MaxPermSize=256m

#11


5  

After trying the above solution of reducing the memory, Eclipse starts working but hangs every time while loading the plugins from the work-space specially at org.eclipse.debug.core.

在尝试了上述减少内存的解决方案之后,Eclipse开始工作,但是每次都挂起了在工作空间中加载插件,特别是在org.eclipse.debug.core中。

I found the solution here, Eclipse hangs at Splash Screen, and want share it. Hopefully it can help others as well.

我在这里找到了解决方案,Eclipse挂在启动屏幕上,想要共享它。希望它也能帮助别人。

#12


3  

Quick fix:

快速修复:

Change -Xmx1024m to -Xmx512m in eclipse.ini (file located at the same level where eclipse.exe is present). And it will work like a charm.

在eclipse中更改-Xmx1024m到-Xmx512m。ini(文件位于eclipse所在的同一级别)。exe存在)。而且它会像魔法一样有效。

#13


3  

The simple way to fix this problem is just to delete or rename your eclipse.ini file. Try it first. If this method does not resolve your problem, try the solutions described below.

解决这个问题的简单方法就是删除或重命名您的eclipse。ini文件。先试一试。如果此方法不能解决您的问题,请尝试下面描述的解决方案。

Other ways to fix it:

其他补救方法:

Solution 1

解决方案1

Add a string into the eclipse.ini file which change a destination of the javaw.exe file. The main thing is that this string must be placed above the string "-vmargs"!

在eclipse中添加一个字符串。更改javaw的目的地的ini文件。exe文件。最重要的是,这个字符串必须放在字符串“-vmargs”之上!

-vm
C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe 

Solution 2

解决方案2

Remove the value of –launcher.XXMaxPermSize, like 256m.

删除-启动器的值。XXMaxPermSize,比如256。

Solution 3

解决方案3

Remove or decrease the values of Xms and Xmx:

删除或减少Xms和Xmx的值:

-Xms384m 
-Xmx384m

#14


3  

This may work:

这可能工作:

Open eclipse.ini file and paste below lines at the end of the lines.

打开eclipse。ini文件并粘贴到行末尾的行。

-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m

#15


2  

Try this one:

试试这个:

-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 
-showsplash org.eclipse.platform 
--launcher.XXMaxPermSize 256m 
--launcher.defaultAction openFile 
-vm F:\Program Files\jdk1.6\bin\javaw.exe 
-vmargs 
-Xms512m 
-Xmx512m 
-XX:+UseParallelGC 
-XX:PermSize=256M 
-XX:MaxPermSize=512M

#16


2  

This worked for me:

这工作对我来说:

I closed all the other memory intensive applications on my Windows 7 machine. And I tried to open Eclipse, and, voila, it worked.

我关闭了Windows 7机器上所有其他内存密集型应用程序。我试着打开Eclipse,瞧,它成功了。

#17


1  

Adding this fixed the issue for me:

为我补充这个问题:

-vm

D:\Java\jdk1.6.0_29\bin\javaw.exe

#18


1  

Some time it's not your eclipse.ini; it's your JDK which is crashed. You can check it by writing following command in a command prompt:

有一段时间,它不是你的食。是你的JDK崩溃了。您可以通过在命令提示符中编写以下命令来检查它:

c:\> java -version

If this command shows the following error:

如果该命令显示了以下错误:

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

Then first uninstall JDK and reinstall it.

然后首先卸载JDK并重新安装它。

Eclipse will be in action again ;) As today I have got the same problem, and the above is suggested by Itachi Uchiha.

Eclipse将再次运行;就像今天我遇到了同样的问题,上面是由Itachi Uchiha建议的。

#19


1  

Reduce param size upto -256

将param大小减少到-256。

See my eclipse.ini file

    -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
   256M
  -showsplash
   org.eclipse.platform
   --launcher.XXMaxPermSize
   256M
  --launcher.defaultAction
  openFile
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -Xms40m
  -Xmx512m

#20


1  

After adding -vm in eclipse.ini as shown below worked for me. Add it before -vmargs do not remove it

在eclipse中添加-vm之后。下面显示的ini为我工作。添加它之前-vmargs不删除它。

-vm
C:\apps\Java\jdk1.8.0_92\bin\javaw.exe
-vmargs

There was a jdk update which was causing this issue.

有一个jdk更新导致了这个问题。

#21


1  

  1. Open the ecplise.ini file which is located in the eclipse installation folder.

    打开ecplise。ini文件位于eclipse安装文件夹中。

  2. Find & Replace the line -vmargs with -vm D:\jdk1.6.0_23\bin\javaw.exe OR just remove the line -vmargs and save it . Now the problem is getting solved

    查找并替换带有-vm D的行-vmargs:\jdk1.6.0_23\bin\javaw。exe或者只是删除线-vmargs并保存它。现在问题已经解决了。

#22


0  

For me it solved by changing the JDK bin path in the Path environment variable. Put the JDK bin path which has jre/bin/client/jvm.dll under JDK home.

对于我来说,它通过改变path环境变量中的JDK bin路径来解决。放置具有jre/bin/client/jvm的JDK bin路径。dll在JDK回家。

#23


0  

STEPS TO SOLVE THE ISSUE :-

解决问题的步骤:-。

  1. Open the eclipse.ini file from your eclipse folder.

    打开eclipse。来自eclipse文件夹的ini文件。

  2. It has some of add on configuration . Find the line –launcher.XXMaxPermSize.It will be the last line in this file. Now remove/delete the the default value 256m and save it.

    它有一些附加的配置。找到-launcher.XXMaxPermSize。它将是这个文件的最后一行。现在删除/删除默认值256m并保存它。

#24


0  

-vm D:\Java\jdk1.6.0_29\bin\javaw.exe

#25


0  

I was facing the same problem, and I found the solution. There are issues in allocation of MaxPermSize. If you try to allocate more than your machine's free space then it gives this error in my issue. So try to reduce MaxPermSize.

我遇到了同样的问题,我找到了解决方案。MaxPermSize的分配存在问题。如果你试图分配比你的机器的*空间更多,那么它会在我的问题中给出这个错误。所以尽量减少MaxPermSize。

I think it will help you to sort out your issue.

我想这将有助于你解决你的问题。

#26


0  

@Maro For me it worked very simply!

@Maro对我来说很简单!

After getting the error message alert, I executed 'eclipsec.exe' from a command prompt. This opened Eclipse. Then again I tried with 'eclipse.exe' and now it's working nice and well.

在得到错误消息警告之后,我执行了“eclipsec”。从命令提示符。这个打开Eclipse。然后我又试着用“eclipse”。exe,现在它工作得很好。

Unfortunately, it didn't give any technical reason for this.

不幸的是,它没有给出任何技术原因。

#27


0  

In my case this problem occured after updating Java from 1.6 to 1.7.

在我的情况下,这个问题发生在更新Java 1.6到1.7之后。

To understand the error, run java.exe in the folder of eclipse.exe. Use parameters from eclipse.ini as it will show which parameter causes the failure.

要理解错误,请运行java。exe在eclipse.exe文件夹中。从eclipse使用的参数。它将显示哪个参数导致了失败。

For example:

例如:

F:\Mobile Class\adt-bundle-windows-x86\adt-bundle-windows-x86\eclipse>java -star
tup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.lib
rary plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
 -product com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 7
68m  -showsplash org.eclipse.platform --launcher.XXMaxPermSize 768m --launcher.d
efaultAction openFile -vm C:\Program Files\Java\jre7\bin\client\jvm.dll -vmargs
-Dosgi.requiredJavaVersion=1.6 -Declipse.buildId=v21.1.0-569685 -Xms40m -Xmx768m

Unrecognized option: -startup
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

So I changed 'startup' swith to 'jar' like below and problem fixed:

因此,我将“startup”改为“jar”,如下所示:

F:\Mobile Class\adt-bundle-windows-x86\adt-bundle-windows-x86\eclipse>java -jar
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library
 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -pr
oduct com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 768m
-showsplash org.eclipse.platform --launcher.XXMaxPermSize 768m --launcher.defaul
tAction openFile -vm C:\Program Files\Java\jre7\bin\client\jvm.dll -vmargs -Dosg
i.requiredJavaVersion=1.6 -Declipse.buildId=v21.1.0-569685 -Xms40m -Xmx768m

#28


0  

Go to Task Manager, end all unnecessary tasks, and start Eclipse. You will not get this error. Try it; it worked for me :)

转到任务管理器,结束所有不必要的任务,并启动Eclipse。你不会得到这个错误。试一试;它为我工作:

#29


0  

One Eclipse window was already opened on my machine and when I tried to open another Eclipse instance, I got this error. I just closed my open Eclipse windows and then launched another. And there was no such error anymore :)

在我的机器上已经打开了一个Eclipse窗口,当我尝试打开另一个Eclipse实例时,我得到了这个错误。我关闭了打开的Eclipse窗口,然后启动了另一个。再也没有这样的错误了:)

#30


0  

After failing with the above proven steps, I tried something after deciding to re-install.

在上述步骤失败后,我在决定重新安装之后尝试了一些东西。

Added : %\USER PATH\Java\jdk1.6.0_39\bin to Environment Variables

添加:%\用户路径\Java\jdk1.6.0_39\bin到环境变量。

Deleted: eclipse configuration file

删除:eclipse配置文件

Re-run : eclipsec.exe

重新运行:eclipsec.exe

Now everything from projects is back working.

现在,从项目开始,一切都恢复了正常。

#1


70  

Try removing the -vm P:\Programs\jdk1.6\bin lines.

尝试删除-vm P:\程序\jdk1.6\bin行。


Also, a general recommendation: set -Dosgi.requiredJavaVersion=1.6, not 1.5.

另外,一般建议:set - dosgi.requiredjav= 1.6,而不是1.5。

#2


279  

1. Open the eclipse.ini file from your eclipse folder,see the picture below.

1。打开eclipse。来自eclipse文件夹的ini文件,请参见下面的图片。

Eclipse错误:“未能创建Java虚拟机”

2. Open eclipse.ini in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Now change the default value 256m (or 1024m) to 512m. You also need to give the exact java installed version (1.6 or 1.7 or other).

2。打开eclipse。在记事本或任何其他文本编辑器应用程序中,找到line -Xmx256m(或-Xmx1024m)。现在将默认值256m(或1024m)更改为5.12 m。您还需要给出确切的java安装版本(1.6或1.7或其他版本)。

Eclipse错误:“未能创建Java虚拟机”

Like This:

是这样的:

-Xmx512m
-Dosgi.requiredJavaVersion=1.6

OR

-Xmx512m
-Dosgi.requiredJavaVersion=1.7

OR

-Xmx512m
-Dosgi.requiredJavaVersion=1.8

Then it works well for me.

这对我来说很有效。

#3


100  

Try to add

尝试添加

-vm
D:\Java\jdk1.6.0_29\bin\javaw.exe

FYI: Refer sunblog

供参考:参考sunblog

For others who might have problems with Java 7, as per Eclipse Wiki - eclipse.ini vm_value (windows example)

对于其他可能存在Java 7问题的人,如Eclipse Wiki Eclipse。ini vm_value(windows)

This might not work on all systems. If you encounter "Java was started but returned exit code=1" error while starting the eclipse, modify the -vm argument to point to jvm.dll

这可能不适用于所有系统。如果在启动eclipse时遇到“Java was started but return exit code=1”,请修改-vm参数以指向jvm.dll。

e.g.

如。

-vm
C:\Program Files\Java\jre7\bin\client\jvm.dll

Also note that

还要注意,

The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM

vm选项必须在-vmargs选项之前发生,因为-vmargs的所有内容都直接传递给JVM。

#4


26  

I know this is pretty old now but I have just had the same issue and the problem was I was allocating to much memory to eclipse that it could not get hold of. So open eclipse.ini and lower the amount of memory that is being allocated to -Xmx XXMaxPermSize I changed mine to -Xmx512m and XXMaxPermSize256m

我知道现在已经很老了,但我刚刚遇到了同样的问题,问题是我把很多内存都分配给了它无法获得的eclipse。所以打开eclipse。ini和将被分配给-Xmx XXMaxPermSize的内存减少到-Xmx512m和XXMaxPermSize256m。

#5


18  

  1. Open the eclipse.ini file from your eclipse folder.

    打开eclipse。来自eclipse文件夹的ini文件。

  2. It has some of add on configuration . Find the line –launcher.XXMaxPermSize. Now remove the the default value 256m and save it.

    它有一些附加的配置。找到-launcher.XXMaxPermSize。现在删除默认值256m并保存它。

#6


17  

I removed eclipse.ini. I encountered this issue and removing the ini file solved it.

我eclipse.ini删除。我遇到这个问题并删除了ini文件。

#7


9  

  1. Open folder with Eclipse.exe and find eclipse.ini file
  2. 与Eclipse打开文件夹。exe,找到eclipse。ini文件
  3. Replace -vmargs by your current real path of javaw.exe: *-vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe”*

    用当前javaw的实际路径替换-vmargs。exe:* vm“c:\ Program Files \ Java \ jdk1.7.0_07 \ bin \ javaw.exe”*

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
    -product
    com.android.ide.eclipse.adt.package.product
    --launcher.XXMaxPermSize
    256M
    -showsplash
    com.android.ide.eclipse.adt.package.product
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    **-vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe”** 
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx768m
    -Declipse.buildId=v21.1.0-569685
    

#8


8  

You can also solve this issue by removing the value "256m" under the line "-launcher.XXMaxPermSize”.

您还可以通过删除“-launcher.XXMaxPermSize”下的“256m”值来解决这个问题。

#9


7  

I found a very easy solution for this. Just delete eclipse.ini file, but backup first. I had this same problem many times and finally I deleted this and I no more have the problem.

我找到了一个很简单的解决方法。只是删除eclipse。ini文件,但先备份。我有很多次同样的问题,最后我删除了这个问题,我不再有问题了。

It also increased loading time. Now my Eclipse starts faster than earlier.

它也增加了加载时间。现在我的Eclipse开始比以前更快了。

#10


6  

In STS.conf file you need to check two important things to avoid create/allocate jvm issue

在STS。conf文件需要检查两个重要的东西,以避免创建/分配jvm问题。

1. Give the exact jdk install location:

1。给出确切的jdk安装位置:

--vm C:\Program Files\Java\jdk1.7.0_01\jre\bin\javaw.exe

2. You need to give the exact java installed version:

2。您需要给出确切的java安装版本:

--Dosgi.requiredJavaVersion=1.7

3. Try to reduce the memory size:

3所示。试着减少内存大小:

--XX:MaxPermSize=256m

#11


5  

After trying the above solution of reducing the memory, Eclipse starts working but hangs every time while loading the plugins from the work-space specially at org.eclipse.debug.core.

在尝试了上述减少内存的解决方案之后,Eclipse开始工作,但是每次都挂起了在工作空间中加载插件,特别是在org.eclipse.debug.core中。

I found the solution here, Eclipse hangs at Splash Screen, and want share it. Hopefully it can help others as well.

我在这里找到了解决方案,Eclipse挂在启动屏幕上,想要共享它。希望它也能帮助别人。

#12


3  

Quick fix:

快速修复:

Change -Xmx1024m to -Xmx512m in eclipse.ini (file located at the same level where eclipse.exe is present). And it will work like a charm.

在eclipse中更改-Xmx1024m到-Xmx512m。ini(文件位于eclipse所在的同一级别)。exe存在)。而且它会像魔法一样有效。

#13


3  

The simple way to fix this problem is just to delete or rename your eclipse.ini file. Try it first. If this method does not resolve your problem, try the solutions described below.

解决这个问题的简单方法就是删除或重命名您的eclipse。ini文件。先试一试。如果此方法不能解决您的问题,请尝试下面描述的解决方案。

Other ways to fix it:

其他补救方法:

Solution 1

解决方案1

Add a string into the eclipse.ini file which change a destination of the javaw.exe file. The main thing is that this string must be placed above the string "-vmargs"!

在eclipse中添加一个字符串。更改javaw的目的地的ini文件。exe文件。最重要的是,这个字符串必须放在字符串“-vmargs”之上!

-vm
C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe 

Solution 2

解决方案2

Remove the value of –launcher.XXMaxPermSize, like 256m.

删除-启动器的值。XXMaxPermSize,比如256。

Solution 3

解决方案3

Remove or decrease the values of Xms and Xmx:

删除或减少Xms和Xmx的值:

-Xms384m 
-Xmx384m

#14


3  

This may work:

这可能工作:

Open eclipse.ini file and paste below lines at the end of the lines.

打开eclipse。ini文件并粘贴到行末尾的行。

-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m

#15


2  

Try this one:

试试这个:

-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 
-showsplash org.eclipse.platform 
--launcher.XXMaxPermSize 256m 
--launcher.defaultAction openFile 
-vm F:\Program Files\jdk1.6\bin\javaw.exe 
-vmargs 
-Xms512m 
-Xmx512m 
-XX:+UseParallelGC 
-XX:PermSize=256M 
-XX:MaxPermSize=512M

#16


2  

This worked for me:

这工作对我来说:

I closed all the other memory intensive applications on my Windows 7 machine. And I tried to open Eclipse, and, voila, it worked.

我关闭了Windows 7机器上所有其他内存密集型应用程序。我试着打开Eclipse,瞧,它成功了。

#17


1  

Adding this fixed the issue for me:

为我补充这个问题:

-vm

D:\Java\jdk1.6.0_29\bin\javaw.exe

#18


1  

Some time it's not your eclipse.ini; it's your JDK which is crashed. You can check it by writing following command in a command prompt:

有一段时间,它不是你的食。是你的JDK崩溃了。您可以通过在命令提示符中编写以下命令来检查它:

c:\> java -version

If this command shows the following error:

如果该命令显示了以下错误:

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

Then first uninstall JDK and reinstall it.

然后首先卸载JDK并重新安装它。

Eclipse will be in action again ;) As today I have got the same problem, and the above is suggested by Itachi Uchiha.

Eclipse将再次运行;就像今天我遇到了同样的问题,上面是由Itachi Uchiha建议的。

#19


1  

Reduce param size upto -256

将param大小减少到-256。

See my eclipse.ini file

    -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
   256M
  -showsplash
   org.eclipse.platform
   --launcher.XXMaxPermSize
   256M
  --launcher.defaultAction
  openFile
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -Xms40m
  -Xmx512m

#20


1  

After adding -vm in eclipse.ini as shown below worked for me. Add it before -vmargs do not remove it

在eclipse中添加-vm之后。下面显示的ini为我工作。添加它之前-vmargs不删除它。

-vm
C:\apps\Java\jdk1.8.0_92\bin\javaw.exe
-vmargs

There was a jdk update which was causing this issue.

有一个jdk更新导致了这个问题。

#21


1  

  1. Open the ecplise.ini file which is located in the eclipse installation folder.

    打开ecplise。ini文件位于eclipse安装文件夹中。

  2. Find & Replace the line -vmargs with -vm D:\jdk1.6.0_23\bin\javaw.exe OR just remove the line -vmargs and save it . Now the problem is getting solved

    查找并替换带有-vm D的行-vmargs:\jdk1.6.0_23\bin\javaw。exe或者只是删除线-vmargs并保存它。现在问题已经解决了。

#22


0  

For me it solved by changing the JDK bin path in the Path environment variable. Put the JDK bin path which has jre/bin/client/jvm.dll under JDK home.

对于我来说,它通过改变path环境变量中的JDK bin路径来解决。放置具有jre/bin/client/jvm的JDK bin路径。dll在JDK回家。

#23


0  

STEPS TO SOLVE THE ISSUE :-

解决问题的步骤:-。

  1. Open the eclipse.ini file from your eclipse folder.

    打开eclipse。来自eclipse文件夹的ini文件。

  2. It has some of add on configuration . Find the line –launcher.XXMaxPermSize.It will be the last line in this file. Now remove/delete the the default value 256m and save it.

    它有一些附加的配置。找到-launcher.XXMaxPermSize。它将是这个文件的最后一行。现在删除/删除默认值256m并保存它。

#24


0  

-vm D:\Java\jdk1.6.0_29\bin\javaw.exe

#25


0  

I was facing the same problem, and I found the solution. There are issues in allocation of MaxPermSize. If you try to allocate more than your machine's free space then it gives this error in my issue. So try to reduce MaxPermSize.

我遇到了同样的问题,我找到了解决方案。MaxPermSize的分配存在问题。如果你试图分配比你的机器的*空间更多,那么它会在我的问题中给出这个错误。所以尽量减少MaxPermSize。

I think it will help you to sort out your issue.

我想这将有助于你解决你的问题。

#26


0  

@Maro For me it worked very simply!

@Maro对我来说很简单!

After getting the error message alert, I executed 'eclipsec.exe' from a command prompt. This opened Eclipse. Then again I tried with 'eclipse.exe' and now it's working nice and well.

在得到错误消息警告之后,我执行了“eclipsec”。从命令提示符。这个打开Eclipse。然后我又试着用“eclipse”。exe,现在它工作得很好。

Unfortunately, it didn't give any technical reason for this.

不幸的是,它没有给出任何技术原因。

#27


0  

In my case this problem occured after updating Java from 1.6 to 1.7.

在我的情况下,这个问题发生在更新Java 1.6到1.7之后。

To understand the error, run java.exe in the folder of eclipse.exe. Use parameters from eclipse.ini as it will show which parameter causes the failure.

要理解错误,请运行java。exe在eclipse.exe文件夹中。从eclipse使用的参数。它将显示哪个参数导致了失败。

For example:

例如:

F:\Mobile Class\adt-bundle-windows-x86\adt-bundle-windows-x86\eclipse>java -star
tup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.lib
rary plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
 -product com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 7
68m  -showsplash org.eclipse.platform --launcher.XXMaxPermSize 768m --launcher.d
efaultAction openFile -vm C:\Program Files\Java\jre7\bin\client\jvm.dll -vmargs
-Dosgi.requiredJavaVersion=1.6 -Declipse.buildId=v21.1.0-569685 -Xms40m -Xmx768m

Unrecognized option: -startup
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

So I changed 'startup' swith to 'jar' like below and problem fixed:

因此,我将“startup”改为“jar”,如下所示:

F:\Mobile Class\adt-bundle-windows-x86\adt-bundle-windows-x86\eclipse>java -jar
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library
 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -pr
oduct com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 768m
-showsplash org.eclipse.platform --launcher.XXMaxPermSize 768m --launcher.defaul
tAction openFile -vm C:\Program Files\Java\jre7\bin\client\jvm.dll -vmargs -Dosg
i.requiredJavaVersion=1.6 -Declipse.buildId=v21.1.0-569685 -Xms40m -Xmx768m

#28


0  

Go to Task Manager, end all unnecessary tasks, and start Eclipse. You will not get this error. Try it; it worked for me :)

转到任务管理器,结束所有不必要的任务,并启动Eclipse。你不会得到这个错误。试一试;它为我工作:

#29


0  

One Eclipse window was already opened on my machine and when I tried to open another Eclipse instance, I got this error. I just closed my open Eclipse windows and then launched another. And there was no such error anymore :)

在我的机器上已经打开了一个Eclipse窗口,当我尝试打开另一个Eclipse实例时,我得到了这个错误。我关闭了打开的Eclipse窗口,然后启动了另一个。再也没有这样的错误了:)

#30


0  

After failing with the above proven steps, I tried something after deciding to re-install.

在上述步骤失败后,我在决定重新安装之后尝试了一些东西。

Added : %\USER PATH\Java\jdk1.6.0_39\bin to Environment Variables

添加:%\用户路径\Java\jdk1.6.0_39\bin到环境变量。

Deleted: eclipse configuration file

删除:eclipse配置文件

Re-run : eclipsec.exe

重新运行:eclipsec.exe

Now everything from projects is back working.

现在,从项目开始,一切都恢复了正常。