Differences on Windows and Linux JVM about java.util.zip package
807580May 3 2010 — edited May 4 2010Hello, there!
I need some help if someone else has already face this problem.
I have a Java server that process the bytes of a SWF File stored in the server and ouptut it to the user through a Servlet. The file was decompressed and re-compressed using the java.util.zip package (Deflater/Inflater).
Everything works fine on Windows Server 2008 server. But now we need to migrate the server to Linux. The problem is that when I test the website now, the file seens to be corrupted.
What really intrigues me is that everything runs normal on Windows Server configuration, when changed to Linux, the final file seens to be corrupeted... what could possible be the cause? Is there any difference between java.util.zip package on Window and Linux JVM?
My Windows Server is:
. Windows Server 2008 (6.0 - x86)
. Apache 2.2.11
. Tomcat 6.0.16.0
. Java JDK 1.6.0_12-b04
My CentOS Server is
. CentOS 5.4 (2.6.18-164.15.1.el5 - i386)
. Apache 2.2.3
. Tomcat 6.0.16.0
. Java JDK 1.6.0_12-b04
Please, if someone could give me a lead, I would appreciate very much!
Thank you all in advance,
CaioToOn!