China has criticized the Japan-Philippines negotiations, saying that Beijing's participation is essential and that the talks are completely illegal and invalid.