You need to set up the run configuration with exec:java, not exec:exec. This was the problem for me at least.