The key is in understanding how a program is set up. If you had to run a setup wizard to install the program, then you will need to set it up again on a new drive.
Java in your browser, and Java on your computer, are actually two different, related, things. If you install it in the browser, then it won’t work elsewhere. Confused? I don’t blame you!
Depending on the situation, the number of machines you can install a single copy of Microsoft Office on is unclear.