[ACCEPTED]-Eclipse editor won't open-eclipse

Accepted answer
Score: 35

This is often a problem with temporary files 9 saved by eclipse plugins. Check YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.jdt.core/. There 8 are a lot of index files. Sometimes it helps 7 to delete them. Also, start your eclipse 6 with -clean.

But I think your problem is slightly 5 different. Did you have a reference to a 4 library(jar-file) somewhere in your filesystem? If 3 you deleted it or moved it, eclipse can't 2 build your projects.

Did you refresh all 1 your projects?

Score: 12

I've got the same problem though my eclipse 4 is much newer - 4.2 (Juno). For me the solution 3 was to remove <workspace>/.metadata/.plugins/org.eclipse.core.resources/.snap. Afterwards I found this 2 bug in eclipse.org: Bug 178988 - Crash at startup due to ".snap" files.

Hope this will help 1 somebody.

Score: 3
at org.eclipse.core.runtime.Path.<init>(Path.java:183)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:181)
at org.eclipse.jdt.internal.core.ExternalFoldersManager.isExternalFolderPath(ExternalFoldersManager.java:90)
at org.eclipse.jdt.internal.core.JavaProject.addToResult(JavaProject.java:2738)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2688)

The stack trace seem to indicate that there 8 is a problem with your classpath.

  1. Maybe your JRE is pointing to an invalid location / isn't defined? (Window->Preferences->Java->Installed JREs).
  2. Maybe your project contains invalid class path entries? Try to create a new java project and check if that is working as expected. If it works check the classpath of your not working project.

Edit: Another 7 Idea ... launch eclipse on an other workspace. Then 6 create a launch configuration for an "Eclipse 5 Configuration" with the workspace that produces 4 an error. Set a java exception breakpoint 3 for NullPointerException. Start in debug 2 mode and you can inspect the variables to 1 see which path produces the problems.

Score: 3

Google this error and you get plenty of 9 hits in a variety of (Eclipse) IDE's and 8 plugins. There seems to be no record of 7 real 'fix' though, besides the one you found 6 out where you create a new workspace.

3.6.2.r362_v20110210 is the version I'm running. Are you sure you're on 3.6.2? You're first edit lists

-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

which 5 seems to point at an older release.

I agree 4 with another poster that you should definitely 3 search and/or post this on Eclipse's bugtracking 2 system. That's the least you can do when 1 you use open source software.

Score: 1

I tried a couple of options

  1. delete cache files within .plugins
  2. delete all index files in <workspace>/.metadata/.plugins/org.eclipse.jdt.core
  3. delete snap file in <workspace>/.metadata/.plugins/org.eclipse.core.resources/.snap
  4. -clean as a start up parameter
  5. -initialize as a start up parameter

But I keep getting 9 the error back randomly.

So far, the only 8 option that worked consistently is removing 7 the .snap file, the first time we launch 6 eclipse after removing .snap file it works 5 fine.

Also any time we launch it in a new 4 workspace; it works fine. but we would hate 3 to switch the workspace for this reason.

Moreover 2 if we close and relaunch eclipse the issue 1 comes back randomly.

Score: 0

I was getting this for FlashBuilder 4.7. It 5 was a permissions issue. On Mac OSX, from 4 the info box, I gave my user READ & WRITE 3 access to Flash Builder 4.7 folder, then 2 did "Apply to enclosed items..." and that 1 fixed it.

Score: 0

The solution to the above problem is to 3 go to workspace.metadata.plugins\org.eclipse.jdt.core 2 & remove all the index files.

Thanks 1 FlorianOver

Score: 0

Had the same problem(on Indigo 3.7) and 2 getting right version of jadclipse jar(net.sf.jadclipse_3.3.0.jar 1 with Jad 1.5.8g) did it for me

Score: 0

Removing the index files as suggested by 5 others didn't help in my case. I had to 4 reset the perspective: right-click the "Java" perspective 3 toggle button in the upper right corner, choose 2 "Reset". At least it's better than recreating 1 the entire workspace.

Score: 0

For me it worked to delete workspace/.metadate/.lock 2 and then restart by using eclispe -clean 1 -refresh

Score: 0

Here was simple. Right-click in the class 5 and choose the / open with / Java Editor, or 4 Generic Text Editor option.

Aqui foi simples. Clique 3 na classe com o botão direito e escolha 2 a opção / open com / Editor Java, ou Editor 1 de Texto Genérico.

Score: 0

When I faced this issue. I simple updated 1 the eclipse and it resolve the problem.

Score: 0

A solution which worked for me (after first 5 unsuccessfully trying the other more accurate 4 steps listed above) was to do as below:

  1. Close Eclipse and delete all the contents of {Workspace}.metadata.plugins folder.
  2. Open Eclipse. It does not show any projects.
  3. Import the projects into the workspace by going to the File menu, clicking import and continuing with steps.

The 3 issue gets resolved this way. However, a 2 drawback is that you have to import the 1 projects again after the steps.

More Related questions