首页 文章

Eclipse无法正确启动

提问于
浏览
1

所以Eclipse工作的Windows安装了一些更新并重新启动我的电脑,然后突然eclipse无法正常工作 . 我已经做了一些玩它和我的java类路径是正确的我相信但是eclipse仍然只会显示启动画面然后立即关闭 .

除非我使用-debug -consoleLog标记运行它,否则它似乎工作正常 . 知道如何解决这个问题吗?

编辑:

因此,当我使用debug 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 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 -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/

2 回答

  • 2

    所以我最终弄明白了 . 在某些时候,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/

  • 3

    转到工作区的.metadata目录并删除.log文件 . 再次运行Eclipse(它仍然会失败)并查看.log文件以获取有关发生的事情的线索 . 您很可能会看到一些严重异常的堆栈跟踪 . 文件顶部的那些最有可能让您最好地了解发生的事情 . 这就是为什么在追踪这样的问题时删除.log文件的原因 .

相关问题