Japan is a bit different in that its constitution renounces the ability to make war[1], including maintaining forces to make war.
They sidestep around the issue (probably a bit illegally) with their self-defense forces but there are some purely offensive technologies, like nuclear weapons, that even that sidestepping has yet managed to work around.
[1] https://en.wikipedia.org/wiki/Article_9_of_the_Japanese_Cons...