I’m lazy, lazy, lazy…
…so I’m going to copy and paste some comments from an old, related thread. More China-centered, but it addresses in part why Japan succeeded, where China failed.
As regards to China’s decline:
The decline was really very rapid - China in the mid-18th century was still a very vibrant, major power and an aggressively expansionist one at that ( not a lot of people realize that virtually all of what is now the western half of China on maps was only permanently conquered in the 17th and 18th centuries - Ming China was ~ half the size of China today ). However starting in the 17th century Qing China “suffered” a massive population boom - the result of a final synergy between a long internal peace and the culmination of centuries of agricultural refinement. Qing burecracy, already somewhat skeletal, failed to keep pace, with a concurrent increase in internal disorder. Opium almost by its lonesome reversed centuries of net trade surpluses, eventually causing a massive bleed of hard currency overseas and greatly depressing the silver-based Chinese economy. As internal disorder multiplied and the Chinese imperial government ossified after the 1790’s, a serious of major revolts, especially the most incredibly destructive civil war in history, the Taiping Rebellion, devastated and further destabilized China. Meanwhile the industrial revolution gradually allowed Europe to undersell domestic Chinese goods, a situation that accelerated as China plunged into chaos in the mid-19th century.
Despite this, China struggled hard to modernize in the mid-to-late 19th century in particular, much as Japan and the Ottomans did in the same period. Japan succeeded, China and the Ottoman state, partly through their own failures and partly due to outside events sweeping them up, did not.
Japan did suffer some of the same pressures for awhile. After 1866 imports exceeded exports and while the tremendous demand for exported tea and raw silk caused local shortages as increased demand surpassed increased production, imports of cheap cotton textiles devastated the local industry and caused, as in China with its opium problem, a net drain on hard currency ( especially gold in this case, which was overvalued by the Tokugawa Bakufu, where five silver coins could be changed for one gold coin vs. an international standard of 15-1, which meant that until measures were taken to devalue the currency, the river of silver flowing out of China could be used to suck Japan dry of gold ).
However Japan had a number of advantages. One was that there was quite frankly less pressure on Japan, partly because Japan was a lesser market compared to China and partly because Japan, which had been forcefully exposed as being in an inferior position in one dramatic moment, very pragmatically did not get themselves into spitting matches until they were capable of handling the Europeans on closer to even terms. China, meanwhile, less realistic and less in control of events, suffered from the aftermath of such affairs as the Opium Wars and the Boxer Rebellion.
Moreover Japan’s long isolated stagnation under a single stifling regime had in a sense ‘gentled’ down the country. Despite the brief, violent upheavals of the disenfranchised samurai/shizoku elites and the occasional peasant protests over the disruptions of reform, it was really much easier to establish strong central control in Japan than China. No real ethnic minorities ( powerless Ainu excepted ), religious minorities defanged compared to the bad old days, smallish country with no unstable borders or real places for rebels to hide for very long, peasant militancy largely and long since beaten into the dust by centuries of tight central absolutism and a concentration of military resources in a socially seperate military caste. Japan suffered nothing compared to the internal upheavals China did and did not start from a point of re-building from utter social chaos as both China and the Ottomans were forced too.
Finally the Meiji Restoration, outward trappings of imperial rule aside, was ultimately a really quite radical revolution, perhaps every bit as radical as the American Revolution. Unlike the moribund Qing and Ottoman edifices that had to negotiate reforms within the context of decrepit governments with strong reactionary elements, Japan was in a way free to re-invent itself and did so in truly dynamic fashion. Possibly because tJapan was so isolated, yet orderly, much more so and later than China, the shock and impetus to rebuild when their werak position was exposed was also greater.
Well part of it you can deduce from my above comments on Japan. Both China and Japan suffered from popular resistance to change by those frightened by the implications of modernization ( just as the Luddites and similar groups had protested the Industrial Revolution in the west decades earlier ), but Japan was much better positioned to overcome that kind of societal inertia. Further the imperial edifice really was not as nimble and efficient at tackling reform ( indeed was structurally incapable of being so ) as the Meiji government. Also the timing was piss-poor - the internal crisis of 1850-1875 really shattered the country in many ways ( among other things the government had to borrow heavily from the west ). China was perennially dead broke - Japan was always able to keep a steady revenue stream by taxing the peasantry, something China could only sporadically accomplish ( and even then there was a far more massive agrarian regression in China and a need to rebuild from major destruction ). Further the internal and external wars resulted in China concentrating disproportionally on economically unproductive military industries, slighting economic and administrative reforms, whereas Japan had the luxury of following a much more balanced approach. Consequently by the late 1890’s Japan was not only self-sufficient in modern, mass-produced cotton textiles - it was horning in on European exports of the same to places like China, doing their own part to undermine the Chinese economy.
From this old thread: WHY Did Chinese Civilization Decline? - Great Debates - Straight Dope Message Board