Fixed errors in java args