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.

 

src:

https://acoderslife.wordpress.com/2009/06/12/eclipse-java-debugging-showing-variable-type-values-calendar/

eclipse/sts maven run problem

ha a hiba:

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

 

megoldás:

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)

 

src:

http://stackoverflow.com/questions/29285148/eclipse-error-setting-up-maven-project-for-class-exercise-check-m2-home-enviro

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:

eclipse/sts.ini-be:

 

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: http://ronhks.hu/eclipse/m2-subclipse/update-site