Stating my problem.
I am working on a java multi-tier application. It uses Spring framework on the controller side and Hibernate to handle the jdbc. The web server is Apache Tomcat-5.5.27. I use Adobe Flex 3 on the view side. There are java classes, Servlets and JSP's playing intermediate roles throughout the application. The Application runs on a server machine which uses Java 1.5. My system got acidentally updated to java 1.6.
I am supposed to get the assigned module working and then export the project into a war file and deploy on the server.
When i do that, I get a
Bad version number in .class file
I googled and found out it was a versioning error. So, I uninstalled the java 1.6 and installed the 1.5 on my system. I altered the java_home in the environment variables.
Now, when I run the project, I get the same error on my client machine too. Is there anything to be changed in order to straighten out the situation?
I get the error in a method
PdfEncryptor.encrypt(new PdfReader(notTheEncriptedFile), new FileOutputStream(EncriptedFile), userPassword.getBytes(), ownerPassword.getBytes(), PdfWriter.ALLOW_PRINTING , true);
The class PdfEncryptor.encrypt() comes with the iText 5.0.2 libraries.
Can anyone please help me find a possible sloution to this problem? My client machine runs on windows 7 and the server on Redhat linux.