当前位置: 首页 > 知识库问答 >
问题:

Eclipse启动不正确

南宫才英
2023-03-14

所以Eclipse正在工作windows安装了一些更新并重新启动了我的计算机,然后突然eclipse不工作了。我已经用它做了一些尝试,我的java类路径是正确的,我相信但是eclipse仍然只会显示启动屏幕,然后立即关闭。

除非我使用-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

这是我的日食.ini

-启动插件/org.eclipse.equinox.launcher_1.2.0.v20110502.jar--launcher.library插件/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100. v20110502-产品org.eclipse.epp.package.jee.product--launcher.defaultActionopenFile--launcher.XXMaxPermSize256M-show splashorg.eclipse.platform--launcher.XXMaxPermSize256m--launcher.defaultActionopenFile-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx512m-Dsun.lang.ClassLoader.allowArraySyntax=true

已解决:

所以我最终想通了。在某个时候,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个答案

楚志强
2023-03-14

转到您的工作区。元数据目录,并删除。日志文件。再次运行Eclipse(仍然会失败)并查看。日志文件中找到所发生事情的线索。您很可能会看到一些严重异常的堆栈跟踪。文件顶部的那些最有可能给你发生了什么最好的想法。这就是为什么你删除了?日志文件,当你跟踪这样的问题。

公良子轩
2023-03-14

所以我最终想通了。在某个时候,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/

 类似资料:
  • 我正在尝试以伪分布式模式安装Hadoop2.2.0。当我试图启动datanode服务时,它显示了以下错误,有人能告诉我如何解决这个问题吗?

  • 当我在给定文件夹中运行Eclipse.exe时,它不会启动。Eclipse启动屏幕将出现一瞬间,然后关闭。没有错误。 我几乎什么都试过了。更新JDK和JRE:我安装了JRE 7和JDK 1.7.040。它们都是64位的,都在(x86)文件夹中。我试过重新安装。重新下载Eclipse。每次都是一样的结果。我已经将虚拟机添加到配置中,但仍然没有添加任何内容。 我使用Windows 7和标准Eclips

  • IDE:Eclipse Luna Desktop OS:Windows Server 2008 R2 Enterprise Simulator:na/默认设备:na/默认Java:JDK1.8.0_40 大家下午好。我是一个新手,第一次下载codenameone作为Eclipse IDE中的插件。安装进行得很顺利,我启动了一个新项目,带有原生主题和Hello World模板。但是,当我试图推出主题

  • 好的,所以我已经用了一段时间的eclipse LunaJava6和所有的。今天,我决定是时候更新到Java7了。我去了甲骨文网站,下载了Java7运行时环境,它说它会安装。我让它安装,但它告诉我它检测到它想要卸载的早期版本的java(java 6)。我对这个过程了解不多,认为它很好,这可能不是问题所在。但是它安装了,当我试图在eclipse中运行东西时,它给了我一个错误。所以我重新启动了Eclip