NAGASAKI - A Japanese court sentenced a German man to six years in prison Wednesday for an attempted murder when he was traveling in Nagasaki last year, saying he committed the crime to vent his anger after being turned down by women.