What you are trying to do is actually not possible. If you have no more alternative than using that class, consider one of these two options:
- Is it possible for you to update your java production environment to a more recent version?
- Is it possible for you to decompile your injected java class and build it for java 6?