clean the old jdk dir before installing the new one

clean the old jdk dir before installing the new one