Fix compilation issues - java

Fix compilation issues - java
Merge pull request #1488 from CarlosManias/fix-compilation-issues

Fix compilation issues