Be less verbose when looking for executables and cache result.
Always use java for creating thumbnails.