BUG: Fixed building on windows

Java handshaking fix duplicated variable definition in windows builds.