Japan depends on u.s for defense and u.s will never allow them to become selfreliant on defense unlike china which is independent country and not depend on anyone for defense but supports other countries defense
And yet you see Japan launching rockets. And if Japan were allowed to be more independent in military matters like building ballistic missiles or carriers, you can bet China will show their anger/disapproval about such things.