Resolve OS dependent java and javac reference.
Merge pull request #137 from raphw/master

Resolve OS dependent java and javac reference. Thanks!