Amended java error