I have a small application written in Java that was tested and ran on a JRE_1.6. Now I need to run it against a JRE_1.5. I altered the source code I had to match Java 1.5 requirements and the project compiled fine.
The problem is that it uses a number of precompiled libraries like opencsv-2.3
and those were compiled with Java 1.6, so calling any of their classes results in a java.lang.UnsupportedClassVersionError
.
Most of them are com.apache
libs + opencsv-2.3
+ org.jdom
How can I figure out which libraries exactly need to be replaced? How can I replace the libraries that need it?
Upd: the how can I replace part actually stands for "what can be done if there is no older library?" Is there a way to downgrade a compiled library or do I need to find a similar solution on 1.5 and rewrite the code?