Month: March 2010

Thread: read / write lock

A read / write lock is more sophisticated lock than the Lock implementations shown in the text Locks in Java. Imagine you have an application that reads and writes some resource, but writing it is not done as much as reading it is. Two threads reading the same resource does not cause problems for each…

Read More

failed to load JNI library eclipse/STS

Error Message: Failed to load the JNI shared library “C:Program Files (x86)Javajrebinclientjvm.dll” Solution: Update eclipse.ini with the below stmt -startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar –launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502 -product com.springsource.sts.ide -vm C:jdk_homejrebinserverjvm.dll –launcher.defaultAction openFile –launcher.XXMaxPermSize 384M -vmargs -Dosgi.requiredJavaVersion=1.5 -Xmn128m -Xms256m -Xmx768m -Xss1m -XX:PermSize=128m -XX:MaxPermSize=384m

Read More