In Eclipse Galileo (3.5) or Ganymede (3.4) or older version, you can control the project packaging structure via the “Java EE Module Dependencies” option, so that the project dependencies are deployed to the correct folder. However, in the latest Eclipse Helios (3.6), the “Java EE Module Dependencies” is replaced by “Web Deployment Assembly“, which provide […]

Read more Eclipse : Java EE Module Dependencies is replaced by Web Deployment Assembly

Normally, when you use Maven command mvn eclipse:eclipse to convert existing Java project to support Eclipse project, Maven will create the entire dependency classpath by using the M2_REPO variable, which is not defined in Eclipse by default. Nothing special, M2_REPO is just a normal “classpath variable” in Eclipse to find your local Maven repository. Here, […]

Read more How to add M2_REPO classpath variable to Eclipse IDE

Problem By default, while starting the Tomcat server instance in Eclipse, the project’s dependency libraries will not deploy to the Eclipse’s Tomcat plugin library folder ‘WEB-INF/lib’ correctly. See this “.classpath” file, that is generated by Maven “mvn eclipse:eclipse” command. <classpath> <classpathentry kind="src" path="src/main/java" including="**/*.java"/> <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/> <classpathentry kind="output" path="target/classes"/> <classpathentry kind="var" path="M2_REPO/org/apache/struts/struts-core/1.3.10/struts-core-1.3.10.jar" /> […]

Read more Maven dependency libraries not deploy in Eclipse IDE

By default, Eclipse will output Chinese or non-English characters as question marks (?) or some weird characters. This is because the Eclipse’s default console encoding is Cp1252 or ASCII, which is unable to display other non-English words. To enable Eclipse to display Chinese or other non-English characters correctly, do following : 1. In Eclipse, right […]

Read more How to display chinese character in Eclipse console

This article shows you a few ways to generate the serialVersionUID for serialization class. 1. serialver JDK has a built-in command serialver to generate a serialVersionUID automatically. In this example, we use serialver to generate a serialVersionUID for an Address class. Terminal $ serialver Address Address: static final long serialVersionUID = -687991492884005033L; 2. Eclispe IDE […]

Read more Java – How to generate serialVersionUID

In last tutorial, you created a web application with Maven. Here’s a guide to show you how to convert that web application to support Eclipse IDE. Note Eclipse IDE support web application via WTP tool, so you need to make your Maven based project support it as well. 1. mvn eclipse:eclipse -Dwtpversion=2.0 To convert a […]

Read more How to convert Maven based web application to support Eclipse IDE

Problem During the Eclipse debugging session, the “web.xml” will always deploy to a wrong folder. It’s always cause by manual migrated or converted a Java web project to Maven’s project. See the Eclipse’s workspace folder structure, Tomcat in Eclipse is deploy “web.xml” to a wrong folder, and causing the entire web application fail to run. […]

Read more Tomcat deploy Maven project web.xml to a wrong folder in Eclipse

Eclipse IDE has many customize components, the splash welcome image (purple color loading image) is one of those. I’m very boring to see the purple image loading everyday, a new fresh image will make my development more encouraging 🙂 How to change Eclipse IDE splash image 1) Find “config.ini” file Find the Eclipse’s configuration file […]

Read more How to change Eclipse splash welcome screen image

Latest Eclipse IDE is required to support the hibernate tools plug-in. However my “svn+ssh” is not working correctly after updated to the latest Eclipse IDE and Subeclipse version of 1.6.x. While i initial the “svn+ssh” access connection in Eclipse IDE, i had encountered the following error message. Network connection closed unexpectedly svn: Connection closed unexpectedly […]

Read more svn+ssh hit Connection closed unexpectedly error in Eclipse – (Solution)

Often times, you may to use “mvn eclipse:eclipse -Dwtpversion=1.5” command to create a web project for Eclipse IDE, but you may encounter the following error messages. Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7 D:\mkyong>mvn eclipse:eclipse -Dwtpversion=1.5 [INFO] Scanning for projects… [INFO] Searching repository for plugin with prefix: ‘eclipse’. […]

Read more Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7

Problem Content Assist (Ctrl + Space) is not working in my Eclipse IDE version 3.3. I have two Eclipse IDE installed, both in my laptop and personal desktop computer. However my laptop Eclipse 3.3’s content assist feature is working perfectly, but not my personal desktop computer. Every time, when i pressed on the Ctrl + […]

Read more Content Assist (Ctrl + Space) Is Not Working – Eclipse