What happened to the package explorer in Eclipse?

守給你的承諾、 提交于 2019-12-01 03:08:19
Rich Seller

I'm guessing you've made it a fast view or minimised it to it. You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something.

If you select it and still can't see it, try WindowReset Perspective... to restore all views to their defaults.

Ian Mc

Alt+Shift+Q worked for me when I was in debug mode.

jammies

Weirdly enough, although reset perspective didn't work, menu WindowNew window worked! It opened a new window with the perspectives reset.

Daniel

For me I needed to do two things:

  • Reinstall the "Eclipse Java development tools" via HelpInstall SoftwareProgramming Languages
  • Delete and recreate the .metadata Eclipse Workspace settings.

Honestly, deleting the .metadata directory is probably sufficient - try that first.

user2649191

At the top right corner, there is a button called Open Perspective. Click on it, and then Java Default. Everything will come back to normal.

nkr1pt

Are you sure you are in the Java perspective?

As views are related to perspectives this could be the problem. The current perspective can be found in the upper right corner.

starblue

You may be missing the JDT plugin containing the Package Explorer.

I think you were actually still in the Debug perspective, since that was what did it for me. As someone mentioned above, I had to go to the top right and hit "Java perspective" to get back to my normal views.

Relequestual

Three answerers were helpful, however the only cure was to reinstall Eclipse and install the plugins again. Weird problem, and the exact cause not found. I may have deleted some files somehow, but a reinstall solved it.

gowtham

On the right top you can select Java or JRE or whatever. That button might got changed. So click the neighbor buttons such as Java or something.

Go to Window -> perspective -> Open Perspective -> Java. Now all the packages in Java will be displayed in the package explorer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!