I am using Sourceforge's RTF Template(rtftemplate-1.0.1-b13.jar) to find and replace a text dynamically in an RTF document. But i am getting an error like"java.lang.UnsupportedClassVersionError: Bad version number in .class file" while running my code. I am using JDK 1.5.
Its running fine in JDK1.6 and 7. But i want this functionality in 1.5 as my app is running in 1.5.(I tried other versions too.. But no help).. Am i missing smething?
Please help.
Compile all of them and rebuild the jar? Yes, that's what I would try first. (It's possible you may have problems with code which requires Java 6 to compile, so if you encounter that you'll have to do some rewriting.)
I don't understand your question about whether there's an easy way. I'm sure you know how to compile Java code by now; if you don't, then you're just going to run into one problem after another. This is open-source code you're working with here, so you're expected to be able to do simple things like that.
My understanding is to load the Java source code into some IDE as a Java project and i have to write my own Ant script to compile and build the jar. Am i correct? If yes, its its a little time consuming process and my question is whether the build script to package jar itself is available somewhere?