Correctly use JAVA_HOME when generating SWIG bindings

Fix some compilation problems on windows with multiple java install or java not in path but with a correct JAVA_HOME defined