Fix Java Detection
Merge pull request #338 from markoscalderon/fix-java-detection

Fix Java Detection