Run Java tools in headless mode