Grails Class.forName ClassNotFoundException

Posted by & filed under grails.

Hi everybody. While I am writing introduction post about grails, I would like to share solution for a problem I have encountered today. Lets say inside Grails application you want to get a Class object for some Groovy/Java class, which is located in src/groovy or src/java folders by class name. For example, in BootStrap.groovy. You… Read more »

Things you need to remember when using finally in Java

Posted by & filed under java.

Because Java has a Garbage collector and you don’t know for sure when your object will be destroyed it is tricky to do proper resource management, in comparison with C++ where objects are created on the stack or you control their lifecycle manually by new/delete operator. To help you deal with that, the finally block was… Read more »