TOKYO - Japan will develop its first-ever computer virus by next March as a defense measure against cyberattacks, sources familiar with the matter said Monday.