Archives: 'Java'

SCHAPPY — 11. April 2012, 6:49

[Solved] Java 1.6.0_31 update breaks subclipse / Eclipse hangs during launch on Mac OSX 10.7.3

After the yesterday’s java update for MAC OS X 10.7.3, my Eclipse stopped working this morning after a clean reboot. Eclipse hangs in the launch screen and no CPU activity can be measured. How to detect the current java version: $ java -version java version “1.6.0_31” Java(TM) SE Runtime Environment (build 1.6.0_31-b04-414-11M3626) Java HotSpot(TM) 64-Bit […]

SCHAPPY — 21. July 2008, 17:50

Tortoise SVN+SSH w/ Subclipse

In Windows don’t forget to set the environment variable “SVN_SSH=C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe”. Restart eclipse and it should work.

SCHAPPY — 3. January 2007, 4:02

Dynamic keys for Struts resources (i18n).

Problem: Status messages are returned via status codes (int) and localized messages should be retrieved via internationalized resource file in Struts directly in a JSP file (w/o touching a bean). Solution: Expression Language (EL) solves the problem elegant. Excerpt of the ApplicationResource.properties: [code lang=”Java”]overview.lifeCycleStatusCode=Lifecycle overview.lifecycleStatusCode.1= overview.lifecycleStatusCode.2=Withdrawn overview.lifecycleStatusCode.3=Sent overview.lifecycleStatusCode.4=Approved overview.lifecycleStatusCode.5=Rejected[/code] Excerpt of the according JSP file […]

SCHAPPY — 4. September 2006, 22:10

Thread-Reincanation

SCHAPPY think before you type — do NEVER try to restart a Thread in Java again! It is never legal to start a thread more than once. In particular, a thread may not be restarted once it has completed execution.