Japan and the United States have signed an agreement to encourage cooperation on developing a missile defense system .