How to import a jar in Eclipse?

You can add a jar in Eclipse by right-clicking on the Project → Build Path → Configure Build Path. Under Libraries tab, click Add Jars or Add External JARs and give the Jar. A quick demo here. The above solution is obviously a “Quick” one. However, if you are working on a project where you … Read more

How do I remove javascript validation from my eclipse project?

I actually like MY JavaScript files to be validated, but I definitely don’t want to validate and deal with trivial warnings with third party libraries. That’s why I think that turning off validation all together is too drastic. Fortunately with Eclipse, you can selectively remove some JavaScript sources from validation. Right-click your project. Navigate to: … Read more

Things possible in IntelliJ that aren’t possible in Eclipse?

CTRL-click works anywhere CTRL-click that brings you to where clicked object is defined works everywhere – not only in Java classes and variables in Java code, but in Spring configuration (you can click on class name, or property, or bean name), in Hibernate (you can click on property name or class, or included resource), you … Read more

Eclipse – Unable to install breakpoint due to missing line number attributes

I had the same error message in Eclipse 3.4.1, SUN JVM1.6.0_07 connected to Tomcat 6.0 (running in debug-mode on a different machine, Sun JVM1.6.0_16, the debug connection did work correctly). Window –> Preferences –> Java –> Compiler –> Classfile Generation: “add line number attributes to generated class file” was checked. I did a clean, recompile. … Read more

How to fix error “Updating Maven Project”. Unsupported IClasspathEntry kind=4?

This issue has been fixed in m2e 1.5.0 which is available for Eclipse Kepler (4.3) and Luna (4.4) Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=374332#c14 The problem is caused by the fact that STS (the Spring IDE/Eclipse), as well Eclipse and other Eclipse based IDE’s, use the m2e(clipse) plugin but that eclipse:eclipse has been probably been run on the … Read more

Eclipse Optimize Imports to Include Static Imports

I’m using Eclipse Europa, which also has the Favorite preference section: Window > Preferences > Java > Editor > Content Assist > Favorites In mine, I have the following entries (when adding, use “New Type” and omit the .*): org.hamcrest.Matchers.* org.hamcrest.CoreMatchers.* org.junit.* org.junit.Assert.* org.junit.Assume.* org.junit.matchers.JUnitMatchers.* All but the third of those are static imports. By … Read more