[java] fixed some path conversion in windows and cygwin, complete failured
    resolving fixed, implements java constructor generation.