Setting JDK in Eclipse

You manage the list of available compilers in the Window -> Preferences -> Java -> Installed JRE’s tab. In the project build path configuration dialog, under the libraries tab, you can delete the entry for JRE System Library, click on Add Library and choose the installed JRE to compile with. Some compilers can be configured … Read more

Egit in eclipse missing tree

160000 is a special entry for recording a submodule. A SHA1 equals to 40 zeros means the submodule has been deleted (see git-submodule.sh) or in an unknown state: When you compare something with a work tree state, and when the work tree state is dirty, we always show 0{40} to mean “it is dirty and … Read more

Importing Maven project into Eclipse

I want to import existing maven project into eclipse. I found 2 ways to do it, one is through running from command line mvn eclipse:eclipse and another is to install maven eclipse plugin from eclipse. What is the difference between the both and which one is preferable? The maven-eclipse-plugin is a Maven plugin and has … Read more

How to disable breadcrumbs in Eclipse

If you are referring to the breadcrumbs in the help file of a RCP application, there is only a manual way to do it. Since Ganymede 3.4M5: Michael Borgwardt mentions the toolbar icon Slava Semushin provides a native shortcut based on Ctrl+3+bread, which points directly to the Toggle Java Editor Breadcrumb option. Shachi reminds us … Read more

How to install plugin for Eclipse from .zip

1.makesure your .zip file is an valid Eclipse Plugin Note: that means: your .zip file contains folders features and plugins, like this: for new version Eclipse Plugin, it may also include another two files content.jar, artifacts.jar, example: but this is not important for the plugin, the most important is the folders features and plugins which … Read more

Which Eclipse files belong under version control?

Metadata should not be managed in source control. They contain mostly data relevant to your workspace. The only exception is the .launch XML files (launcher definition). They are found in [eclipse-workspace]\.metadata\.plugins\org.eclipse.debug.core\.launches And they should be copied into your project directory: When your project is refreshed, those configurations will be displayed in the “Run configuration” dialog. … Read more

Maven error “Failure to transfer…”

Remove all your failed downloads: find ~/.m2 -name “*.lastUpdated” -exec grep -q “Could not transfer” {} \; -print -exec rm {} \; For windows: cd %userprofile%\.m2\repository for /r %i in (*.lastUpdated) do del %i Then rightclick on your project in eclipse and choose Maven->”Update Project …”, make sure “Update Dependencies” is checked in the resulting … Read more