Make sure that you have set the class path correctly.
Your class path variable should point to lib folder, in newer versions there is no common. So classpath should be with out this.
If the issue remains sent me the snapshot of your environment variables