I'm working on a Java application, where I need to use a jar called myBeans.jar
.
This myBeans.jar
contains lots of class files, that are compiled with jdk 1.7. I don't have the source code for those class files.
And my whole application is using jdk 1.6. I can't change it's compiler to jdk 1.7. So I want my jar to be compatible with my app. And that's why I want the classes of the jar to be compiled with jdk 1.6.
Now my question is: Is there any way to compile the class files (& not java files) using jdk 1.6?
Any alternate suggestions are also welcome.
Someone recommended me to get the source code from class files using decompiler & then compile the source code with jdk 1.6. But I would prefer this solution at the last as there are lots of class files.