Japan has carried out land-based, anti-ship missile tests on its territory for the first time, part of growing efforts to deter China.