jdk1.6.21在eclipse 3.6下存在沖突的問(wèn)題,但說(shuō)的不是很詳細(xì),有人問(wèn)到,那我就再說(shuō)一下吧。這是這個(gè)官方就有說(shuō)明的,在下載頁(yè)面很明顯的標(biāo)出了,只是有的同學(xué)不是在官方下載的或者太粗心沒(méi)注意到。我們看官方是怎么說(shuō)的。
The Eclipse 3.3 - 3.6 launchers for Windows had a problem with the Oracle/Sun Java VM version '1.6.0_21-b06'.
UPDATE: Oracle/Sun have released a respin of their JDK/JRE to fix this, so the recommended resolution of this problem is to download and re-install version 1.6.0_21-b07' or higher from http://www.java.com (alternative link is http://java.sun.com/javase/downloads/index.jsp). Make sure you have b07 or higher by running java -version.
Before the fix was released, there were three choices to work around this:
- switch back to '1.6.0_20' (as of July 19, 2010 it can still be downloaded here)
- Change the commandline for launching or add the following line after "-vmargs" to your Eclipse.ini file:
-XX:MaxPermSize=256m
(Detailed instructions/examples)
- For 32-bit Helios, download the fixed eclipse_1308.dll and place it into
(eclipse_home)/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
The Java bug was closed for voting and comments at 6969236 on the Java BugParade because the change has been reverted; the related Eclipse bug report is open for voting and comments at bug 319514.
已經(jīng)說(shuō)得很明白了,由于1.6.0_21-b06中部分包的名字被Oracle公司修改了,會(huì)造成原先的插件內(nèi)存泄露,故官方也給出了三種解決方案。
(1)把JDK的版本降級(jí)到 jdk 1.6.0_20。下載地址:here
(2)修改Eclipse.ini文件里的設(shè)置,在-vmargs后添加或修改下面這句-XX:MaxPermSize=256m。
(3)對(duì)于32位版本的Eclipse3.6,可以下載這個(gè)補(bǔ)丁。eclipse_1308.dll,并且放置到(eclipse_home)/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503。
(4)升級(jí)jdk1.6.0_21-b06到1.6.0_21-b07或更高。