Not sure, but Oracle is supposed to have the habit of installing older versions of
Java and adding them to the PATH. Have a look in your PATH, see whether that has happened, and consider editing the PATH to put the version
you want first.
I presume you have the CLASSPATH correct.
I looked in the API for one of your non-existent classes, MBeanException, and it said "since 1.5" so the PATH thing may well be the cause of your problem. Good luck with it.
