Archive for eclipse

Java Calendar format eclipse-ben

The following effectively overwrites the toString() method for any class as seen using the Eclipse Debugger only, but I’ve found it very useful in decoding calendar objects while I debug.

Add a Debug Detail Formatter, using these steps:

  1. From the menu select Windows->Preferences
  2. In Preferences open Java->Debug and click on Detail Formatters
  3. Here you can add your desired formatter

As an example, for the calendar object:

  1. Click Add..
  2. Enter java.util.Calendar into the Qualified type name field
  3. Enter the following:

java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(“EEE, d MMM yyyy HH:mm:ss Z”); sdf.format(this.getTime());

  1. Ensure Enable this detail formatter is checked

Click OK.



eclipse/sts maven run problem

ha a hiba:

-Dmaven.multiModuleProjectDirectory system propery is not set Check $M2_HOME environment variable and mvn script match.



Window–> Preference –> Java –> Installed JREs –> Edit In the edit Default VM arguments you need to put If you already set the maven home. -Dmaven.multiModuleProjectDirectory=M2_HOME (For Windows machine) -Dmaven.multiModuleProjectDirectory=$M2_HOME (For Mac OS X)



Eclipse Maven problem

In the edit Default VM arguments you need to put

If you already set the maven home.


Eclipse pin to taskbat-vm C:\Program Files\Java\jre7\bin

Annyit szívtam már ezzel és mindig guglizni kellett, ezért leírom ide is:



m2-subclipse telepítése subclipse >=1.08 verziószámból

Ha az alábbi hibát kapjuk az eclipse-ben telepítéskor (Preferences->MAven->Discovery->

ha érezzük az erőt:

chackout and build

Majd install:

Help->New Software-> local es a < a kichckoutolt repo helye> /org.sonatype.m2e.subclipse.feature/target/site/

vagy a zip: m2-subclipse

vagy eclipse update site: