Fixed Java linking path
Merge pull request #3468 from sigito/patch-1

Fixed Java linking path