Tags: java
Java's File.renameTo fails on Windows
February 2nd, 2010I had a problem with renaming a properties file. Java's File.renameTo() always failed and returned false. There was no explanation as to why it failed, so it left me stuck with no idea what to do.
Windows has a different file locking policy to Unix (a… more »
Rules of a ThreadPoolExecutor pool size
November 27th, 2009The rules for the size of a ThreadPoolExecutor's pool are generally miss-understood, because it doesn't work the way that you think it ought to or in the way that you want it to.
Take this example. Starting thread pool size is 1, core pool size is 5,… more »
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
September 15th, 2009Got attacked by a virus which went straight through Firefox's defences then straight through McAfee's defences then destroyed half of my machine. It's still not running right, but I think the virus is now gone.
The virus attacked my Java installation… more »
Where do I put my beans?
December 9th, 2008Where do I put my beans? What beans? Coffee beans? Java beans? No - Spring beans!
When running a servlet container, such as Apache Tomcat, you must define all your java beans in such a way as to facilitate the separation of the live and development sy… more »
JMX examples don't work under windows
November 25th, 2008As you know I have been doing a lot of work with Java application containers and the like. I have recently been looking at Java Management Extensions.
What is JMX?
JMX is a technology that lets you implement management interfaces for Java applicati… more »