Eclipse won't show plugins after installation
I had been using eclipse in Ubuntu 9.10 without any problems. Recently I did an upgrade to 10.04, and it seems that my ~/.eclipse folder was overwritten. Now i tried installing my earlier plugins again, but when i restart 开发者_Python百科eclipse, they don't appear. I can see these plugins in the "installed software" section. I can also see them in ~/.eclipse/plugins and ~/.eclipse/features
I did the following : Copy the plugins installed from ~/.eclipse/plugins to /usr/lib/eclipse/plugins. Done the same for features too.
Now, when i run eclipse as sudo, i can see the plugins. How do i make sure that the plugins are seen when i dont run as sudo?
First about your plugins.
When you say you "see" the plugins it looks like you see the physical folders and jars. The best way is actually to use the dialogue box : help => about eclipse => installation details
There are a number of informative tabs that tell you what your configuration is actually made of. Including the last tab showing the log of the eclipse initialisation.
Then you can also see the log using its dedicated view : window => show view => error log.
Overall the problem as you describe it seems to have to do with permissions. Either in eclipse itself or your workspace or java itself. I'd check that first !
Now about the remote reason for your predicaments.
You seem to have installed eclipse through apt. This is not necessary.
- apt versions are always late over stable eclipse releases.
- You don't master plugins when an upgrade is inflicted on you.
The reason why Debian folks use apt is because it takes care of all dependencies. However, eclipse comes with very little external dependencies: the JRE and that's all and a lot of internal dependencies. This is why you now have pre-packaged eclipse bundles.
In addition, using apt may force an unwanted eclipse update on your installation when you less need it. This is what happened to you.
In the future, if you want to stay on the safe side, don't use apt, go to the eclipse download page and grab the latest stable version. It's sufficient to uninstall eclipse though synaptic and then reinstall the downloaded version and then reinstall your plugins. So that when Natty comes in 2 months time, you don't have to redo everything again.
I got anther fix, and tried successfully. I renamed the ~/.eclipse directory to ~/.eclipse_bak, run eclipse -clean. A new ~/.eclipse directory was created again. Copy the files in ~/.eclipse to the directory ~/eclipse_bak and overwritten the files which already exist. Delete the directory ~/.eclipse, then rename the directory ~/.eclipse_bak to ~/.eclipse Run eclipse -clean again, the missing plugins appeared.
Maybe the file ~/.eclipse/org.eclipse.platform_version_buildId/configuration/eclipse.ini.ignored is the root cause for this issue. But I am not sure because I did not reproduce the issue.
精彩评论