Japan is an island, and the Japanese Strait is a natural barrier. Although Japan is a small country, it was also weak at that time, but with the Japanese Strait, Japan was able to escape from danger several times. The Yuan Dynasty attached importance to Japan several times and made several expeditions to the East. In the end, they all failed due to warships and weather. The military strength of the Mongolian army is very strong, but they are only good at land warfare and are not familiar with naval warfare. So did the Ming army, which had to prepare a large number of warships for the eastward expedition to Japan. In addition, there are often typhoons and other weather along the coast of Japan, and the Ming army is likely to fail because of the weather when attacking Japan.
When the Ming Dynasty was first established, the society was unstable and the country was short of money. The Ming Dynasty was finally established after the war with the Yuan Dynasty, but just after the founding of the People's Republic, everything flourished and the remaining Mongolian forces were still eyeing. If Zhu Yuanzhang really sends troops to attack Japan, perhaps Mongolia will take the opportunity to attack Daming in the south. In addition, the eastward expedition required a lot of military expenses, and the Daming Treasury had no money, so it went to war rashly. It may also be because of insufficient financial resources that it failed to conquer Japan.
It takes the right time, the right place and the right person to fight this, and Zhu Yuanzhang does not have these three conditions to fight Japan, so I don't think Zhu Yuanzhang will succeed in fighting Japan.