remove depending from platform with java