What was happening in the Japanese military in the build up to the Russo-Japanese war that enabled a once backward and agricultural society to defeat a European great power?
To clarify, do you mean what changed recently in the Empire of Japan, from its inception, that allowed it to defeat Russia? Or before that, how the feudal Shogunate became an industrialized Empire?