North Korea are a handy buffer state for China to keep on a short leash, if they toss anything at anyone China will be the first ones to eagerly dissolve that unhinged regime. Their delivery systems aren't up to scratch yet but they can legitimately strike nearby territories and when enemies of the people are all around you... absolute deterrent means you're prepared to teach the opponent a lesson and set an example to everybody else but north korea has shown that they are a rather odd nation... there's method in their madness, does that translate effectively outside the nutbox? I don't believe they are beyond comprehension of the wider picture of what surrounds them even if they keep their population in the barnyard. If Japan had nuclear weapons, it wouldn't be wise to hit a buffer state of China, they will not want a nuclear attack on their border for myriad reasons and Japan would have such a crisis of conscience with what their people experienced, this country would prove it is too irrational to be allowed to even remain isolated if it thought actually using the kitchen knife in the drawer would improve its standing. It's not wise to leave it with them but it's like you have to go in your neighbour's house and confiscate their stuff. Since Japan don't have nukes, who would nuke north korea if they hit Japan for example, what would everybody else do if you decided to respond to this oddball state? Would anybody want to nuke somewhere so close to a country that has the capability to destroy you? If they hit South Korea, the united states is going to come down immediately on their asses, they have considerable forces there permanently. I don't think nuclear retaliation would be an option seriously considered, now if they were in the middle of africa or something they would get blasted to oblivion 'finally an excuse' and I suspect many would see it as a flexing of the muscles to get the honour.
Someone pointed out that japan are extremely successful without the massive chunk of money that developing, testing and maintaining such weapon systems swallow, it is a gigantic ongoing investment, they are doing alright without relying on such a beast but times change and relationships ebb and flow...