Fixed some issues with Java applications in awesome