Fixed the Java script for Windows