TOKYO - The Japanese government will oblige railway operators nationwide to install security cameras in newly built trains following a knife attack aboard a Tokyo train in October, the transport ministry said Friday.