removing dependency from java