2012-08-09 148 views
1

因此,Eclipse工作的Windows安裝了一些更新,並重新啓動我的電腦,然後突然eclipse沒有工作。我已經做了一些玩弄它,我的java類路徑是正確的我相信但日食仍然只會顯示啓動畫面,然後立即關閉。Eclipse無法正確啓動

除非我用-debug -consoleLog標籤運行它,那麼它似乎工作正常。任何想法如何解決這個問題?

編輯:

所以,當我與調試consoleLog標籤啓動它的日誌中說,這

Start VM: -Dosgi.requiredJavaVersion=1.6 
-Xms40m 
-Xmx512m 
-Dsun.lang.ClassLoader.allowArraySyntax=true 
-XX:MaxPermSize=256m 
-Djava.class.path=C:\eclipse-jboss-tools\eclipse\\plugins/org.eclipse.equinox.la 
uncher_1.2.0.v20110502.jar 
-os win32 
-ws win32 
-arch x86 
-showsplash C:\eclipse-jboss-tools\eclipse\\plugins\org.eclipse.platform_3.7.0.v 
201106131736\splash.bmp 
-launcher C:\eclipse-jboss-tools\eclipse\eclipse.exe 
-name Eclipse 
--launcher.library C:\eclipse-jboss-tools\eclipse\\plugins/org.eclipse.equinox.l 
auncher.win32.win32.x86_1.1.100.v20110502\eclipse_1406.dll 
-startup C:\eclipse-jboss-tools\eclipse\\plugins/org.eclipse.equinox.launcher_1. 
2.0.v20110502.jar 
--launcher.overrideVmargs 
-product org.eclipse.epp.package.jee.product 
-debug 
-consoleLog 
-vm C:\Program Files (x86)\Java\jdk1.6.0_30\jre\bin\client\jvm.dll 
-vmargs 
-Dosgi.requiredJavaVersion=1.6 
-Xms40m 
-Xmx512m 
-Dsun.lang.ClassLoader.allowArraySyntax=true 
-XX:MaxPermSize=256m 
-Djava.class.path=C:\eclipse-jboss-tools\eclipse\\plugins/org.eclipse.equinox.la 
uncher_1.2.0.v20110502.jar 
Install location: 
    file:/c:/eclipse-jboss-tools/eclipse/ 
Configuration file: 
    file:/c:/eclipse-jboss-tools/eclipse/configuration/config.ini loaded 
Configuration location: 
    file:/c:/eclipse-jboss-tools/eclipse/configuration/ 
Framework located: 
    file:/c:/eclipse-jboss-tools/eclipse/plugins/org.eclipse.osgi_3.7.0.v2011061 
3.jar 
Loading extension: reference:file:javax.transaction_1.1.1.v201105210645.jar 
    eclipse.properties not found 
Framework classpath: 
    file:/c:/eclipse-jboss-tools/eclipse/plugins/org.eclipse.osgi_3.7.0.v2011061 
3.jar 
    file:/c:/eclipse-jboss-tools/eclipse/plugins/ 
    file:/c:/eclipse-jboss-tools/eclipse/plugins/javax.transaction_1.1.1.v201105 
210645.jar 
Splash location: 
    C:\eclipse-jboss-tools\eclipse\\plugins\org.eclipse.platform_3.7.0.v20110613 
1736\splash.bmp 
Debug options: 
    file:/C:/eclipse-jboss-tools/eclipse/.options not found 
Time to load bundles: 0 
Starting application: 1733 
!SESSION 2012-08-09 13:41:59.369 ----------------------------------------------- 

eclipse.buildId=I20110613-1736 
java.version=1.6.0_30 
java.vendor=Sun Microsystems Inc. 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US 
Framework arguments: -product org.eclipse.epp.package.jee.product 
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp. 
package.jee.product -debug -consoleLog 

!ENTRY org.eclipse.core.resources 2 10035 2012-08-09 13:42:11.367 
!MESSAGE The workspace exited with unsaved changes in the previous session; refr 
eshing workspace to recover changes. 
Application Started: 21299 

!ENTRY edu.hawaii.ics.csdl.jupiter 1 0 2012-08-09 13:42:20.933 
!MESSAGE Jupiter Review Plugin is up. 
13:42:22.135 [Worker-5] INFO o.e.m.c.i.i.nexus.NexusIndexManager - Updating ind 
ex for repository: central|http://repo1.maven.org/maven2 
13:42:22.198 [Worker-5] DEBUG c.n.http.client.RequestBuilderBase - setUrl hasn't 
been invoked. Using http://localhost 
13:42:22.432 [Worker-5] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - 
Non cached request 
DefaultHttpRequest(chunked: false) 
GET /maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 
Host: repo1.maven.org 
Accept-Encoding: gzip 
Connection: keep-alive 
Accept: */* 
User-Agent: m2e/3.7.0.v20110613/1.0.200.20111228-1245 

using Channel 
[id: 0x003293ae, /172.24.143.141:65508 => repo1.maven.org/93.184.215.223:80] 

13:42:22.463 [New I/O client worker #1-1] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvid 
er - 

Request DefaultHttpRequest(chunked: false) 
GET /maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 
Host: repo1.maven.org 
Accept-Encoding: gzip 
Connection: keep-alive 
Accept: */* 
User-Agent: m2e/3.7.0.v20110613/1.0.200.20111228-1245 

Response DefaultHttpResponse(chunked: false) 
HTTP/1.1 200 OK 
Via: 1.1 204.124.139.27 (McAfee Web Gateway 7.1.0.4.0.11515) 
Date: Thu, 09 Aug 2012 17:42:22 GMT 
Server: ECAcc (dca/536B) 
X-Cache: HIT, MISS from 204.124.139.27 
Connection: Keep-Alive 
Content-Type: application/octet-stream 
Accept-Ranges: bytes 
Last-Modified: Sun, 15 Jul 2012 10:54:57 GMT 
Content-Length: 1130 

13:42:22.463 [New I/O client worker #1-1] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvid 
er - Adding uri: http://repo1.maven.org:80 for channel [id: 0x003293ae, /172.24. 
143.141:65508 => repo1.maven.org/93.184.215.223:80] 
13:42:28.303 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Building project 
pos_stub 
13:42:28.334 [Worker-0] DEBUG o.e.m.c.internal.embedder.MavenImpl - Reading Mave 
n project: C:\epcdev\workspaces\fif_frontend\pos_stub\pom.xml 
13:42:28.678 [Worker-0] DEBUG o.e.m.c.internal.embedder.MavenImpl - Read Maven p 
roject: C:\epcdev\workspaces\fif_frontend\pos_stub\pom.xml in 344 ms 
13:42:28.709 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Build participants for MavenProject: com.advancestores.storechannel.stubs:local 
PosStub:0.0.1-SNAPSHOT @ C:\epcdev\workspaces\fif_frontend\pos_stub\pom.xml 
13:42:28.818 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.1:generate (e 
xecution: schema1-generate, phase: generate-sources) 
13:42:28.818 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-resources-plugin:2.4.3:resou 
rces (execution: default-resources, phase: process-resources) 
13:42:28.818 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: execute 
13:42:29.177 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compil 
e (execution: default-compile, phase: compile) 
13:42:29.177 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.177 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.eclipse.m2e.jdt.javaConfigurator 
13:42:29.177 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.eclipse.m2e.jdt.internal.JavaProjectCo 
nfigurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.webfragment.configurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.WebFragmentProje 
ctConfigurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.utility.configurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.UtilityProjectCo 
nfigurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.java.unsupportedDependencyTypeConfigurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.UnsupportedDepen 
dencyTypeProjectConfigurator 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-resources-plugin:2.4.3:testR 
esources (execution: default-testResources, phase: process-test-resources) 
13:42:29.209 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: execute 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCo 
mpile (execution: default-testCompile, phase: test-compile) 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.eclipse.m2e.jdt.javaConfigurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.eclipse.m2e.jdt.internal.JavaProjectCo 
nfigurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.webfragment.configurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.WebFragmentProje 
ctConfigurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.utility.configurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.UtilityProjectCo 
nfigurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.java.unsupportedDependencyTypeConfigurator 
13:42:29.224 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.UnsupportedDepen 
dencyTypeProjectConfigurator 
13:42:29.240 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (
execution: default-test, phase: test) 
13:42:29.240 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-ejb-plugin:2.3:ejb (executio 
n: default-ejb, phase: package) 
13:42:29.240 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.240 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.configurator 
13:42:29.240 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.WTPProjectConfig 
urator 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
    Action: configurator 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator id: org.maven.ide.eclipse.configuration.wtp 
.ejbmanifest.configurator 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Project configurator: org.maven.ide.eclipse.wtp.mavenarchiver.Ej 
bMavenArchiverConfigurator 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
     Build participant: org.sonatype.m2e.mavenarchiver.internal.Abstr 
actMavenArchiverConfigurator$1 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-antrun-plugin:1.3:run (execu 
tion: default, phase: verify) 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-install-plugin:2.3.1:install 
(execution: default-install, phase: install) 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.p.c.AbstractCustomizableLifecycleMapping - 
Mojo execution key: org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (ex 
ecution: default-deploy, phase: deploy) 
13:42:29.271 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Executing build p 
articipant org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipa 
nt for plugin execution org.apache.maven.plugins:maven-resources-plugin:2.4.3:re 
sources (execution: default-resources, phase: process-resources) 
13:42:30.489 [Worker-0] WARN o.e.m.c.i.embedder.EclipseLogger - Using platform 
encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform de 
pendent! 
13:42:30.489 [Worker-0] INFO o.e.m.c.i.embedder.EclipseLogger - Copying 17 reso 
urces 
13:42:30.749 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Finished executin 
g build participant org.eclipse.m2e.core.project.configurator.MojoExecutionBuild 
Participant for plugin execution org.apache.maven.plugins:maven-resources-plugin 
:2.4.3:resources (execution: default-resources, phase: process-resources) in 147 
8 ms 
13:42:30.749 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Executing build p 
articipant org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipa 
nt for plugin execution org.apache.maven.plugins:maven-resources-plugin:2.4.3:te 
stResources (execution: default-testResources, phase: process-test-resources) 
13:42:30.751 [Worker-0] WARN o.e.m.c.i.embedder.EclipseLogger - Using platform 
encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform de 
pendent! 
13:42:30.754 [Worker-0] INFO o.e.m.c.i.embedder.EclipseLogger - Copying 0 resou 
rce 
13:42:30.754 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Finished executin 
g build participant org.eclipse.m2e.core.project.configurator.MojoExecutionBuild 
Participant for plugin execution org.apache.maven.plugins:maven-resources-plugin 
:2.4.3:testResources (execution: default-testResources, phase: process-test-reso 
urces) in 4 ms 
13:42:30.755 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Executing build p 
articipant org.sonatype.m2e.mavenarchiver.internal.AbstractMavenArchiverConfigur 
ator$1 for plugin execution org.apache.maven.plugins:maven-ejb-plugin:2.3:ejb (e 
xecution: default-ejb, phase: package) 
13:42:31.880 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Finished executin 
g build participant org.sonatype.m2e.mavenarchiver.internal.AbstractMavenArchive 
rConfigurator$1 for plugin execution org.apache.maven.plugins:maven-ejb-plugin:2 
.3:ejb (execution: default-ejb, phase: package) in 1123 ms 
13:42:31.880 [Worker-0] DEBUG o.e.m.c.i.builder.MavenBuilder - Built project pos 
_stub in 3577 ms 
13:42:32.118 [Worker-5] INFO o.e.m.c.i.i.nexus.NexusIndexManager - Updated inde 
x for repository: central|http://repo1.maven.org/maven2 in 9983 ms 

這裏是我的eclipse.ini

-startup 插件/ 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 256米 --launcher。 defaultAction的 中openFile -vmargs -Dosgi.requiredJavaVersion = 1.6 -Xms40m -Xmx512m -Dsun.lang.ClassLoader.allowArraySyntax =真

解決:

所以我最終想出了它。在某個時候,java.exe被放到了我的Windows文件夾中,該文件夾也在我的%PATH%變量中。一旦我刪除了這些,我幾乎是免費的。

下面是詳細信息櫃面其他人有類似的問題:http://geekycoder.wordpress.com/2009/07/08/java-tips-adventure-in-resolving-the-java-error-error-occurred-during-initialization-of-vm/

+1

你收到任何錯誤訊息?請解釋更多關於正在發生的事情。 – ninge 2012-08-09 16:12:16

+1

另外,發佈你的'eclipse.ini'文件的內容。您是否已經按照http://wiki.eclipse.org/Eclipse.ini中的描述指示Eclipse使用哪個JVM? – 2012-08-09 16:48:58

+0

這就是爲什麼你永遠不應該更新工作的Eclipse環境。創建一個新的Eclipse環境。 – 2012-08-09 18:13:14

回答

3

所以我終於想通了。在某個時候,java.exe被放到了我的Windows文件夾中,該文件夾也在我的%PATH%變量中。一旦我刪除了這些,我幾乎是免費的。

這裏是櫃面別人更多的信息,也有類似的問題:http://geekycoder.wordpress.com/2009/07/08/java-tips-adventure-in-resolving-the-java-error-error-occurred-during-initialization-of-vm/

+0

同樣的事情發生在我身上。你是否知道是什麼導致3個java文件放在Windows文件夾中?在我的情況下,他們被放在C:\ Windows \ System32中。 – 2013-02-26 00:08:44

2

轉到您的工作空間的.metadata目錄,並刪除.log文件。再次運行Eclipse(它仍然會失敗)並查看.log文件以獲取有關發生的事情的線索。您很可能會看到一些嚴重例外的堆棧軌道。文件頂部的那些文件是最有可能讓您知道發生的事情的最佳方法。這就是爲什麼你在追蹤這樣的問題時刪除.log文件的原因。

+0

我沒有做到這一點,它只是顯示啓動畫面,並立即關閉 – Landister 2012-08-09 17:43:09

+0

我的意思是你應該刪除.log文件Eclipse之外。打開Windows資源管理器並導航到工作區的根目錄。您應該看到一個名爲.metadata的目錄,並且該.log文件位於該目錄內。在運行Eclipse之前執行此操作。 – 2012-08-09 18:02:13

+1

我知道。它不記錄任何東西。 – Landister 2012-08-09 19:55:48