The compilation environment is not the same as the JDK version of the build environment, reported: Java.util.zip.ZipException:

Source: Internet
Author: User

When the application is published, it is found that the production environment will compile the environment to compile the war package to the production environment, the report exception is as follows:

[Java]View Plain Copy
  1. caused by:java.util.zip.ZipException:error in opening zip file
  2. At Java.util.zip.ZipFile.open (Native Method)
  3. At java.util.zip.zipfile.<init> (Zipfile.java:127)
  4. At java.util.jar.jarfile.<init> (Jarfile.java:135)
  5. At java.util.jar.jarfile.<init> (jarfile.java:)
  6. At sun.net.www.protocol.jar.urljarfile.<init> (urljarfile.java:)
  7. At sun.net.www.protocol.jar.URLJarFile.getJarFile (urljarfile.java:-)
  8. At sun.net.www.protocol.jar.JarFileFactory.get (jarfilefactory.java:)

First confirm that the war package is good, because it is the test environment can run up, that means the environment is out of the question, after the investigation, found that the JDK version of the compilation environment is 1.6.18, the production environment JDK version is 1.6.25, the compilation environment and the production environment of the JDK version of the same, no error, the program runs normally.

The compilation environment is not the same as the JDK version of the build environment, reported: Java.util.zip.ZipException:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.