A summary of errors encountered in running the SWT program

Source: Internet
Author: User
Tags sha1

The specific error message is as follows:

Exception in thread "main" Java.lang.SecurityException:SHA1 Digest error forOrg/eclipse/swt/widgets/table.classAt sun.security.util.ManifestEntryVerifier.verify (Unknown Source) at Java.util.jar.JarVerifier.processEntry (Un Known source) at Java.util.jar.JarVerifier.update (Unknown source) at Java.util.jar.jarverifier$verifierstream.read (U    Nknown source) at Sun.misc.Resource.getBytes (Unknown source) at Java.net.URLClassLoader.defineClass (Unknown source) At java.net.urlclassloader.access$100(Unknown Source) at java.net.urlclassloader$1. Run (Unknown Source) at java.net.urlclassloader$1. Run (Unknown Source) at java.security.AccessController.doPrivileged (Native Method) at java.net.URLClassLoader.fi Ndclass (Unknown source) at Java.lang.ClassLoader.loadClass (Unknown source) at SUN.MISC.LAUNCHER$APPCLASSLOADER.LOADC Lass (Unknown source) at Java.lang.ClassLoader.loadClass (Unknown source) at Com.book.TableViewer2.open (TABLEVIEWER2.J Ava:32) at Com.book.TableViewer2.main (Tableviewer2.java:22)

Finally found the specific cause of the error, (in Baidu and Google was prompted with a jar package problem)

Along this line of thinking to find the Table.class of the package Org.eclipse.swt.win32.win32.x86_64_3.6.1.v3655c.jar thought to go online to download the package.

Here by the way Baidu really does not, search this jar package can not find anything (or not a valid search information) ...

Goolge is the kingly way ..... Found this site on Google http://www.java2s.com/(specifically this address: http://www.java2s.com/Code/Jar/o/ downloadorgeclipseswtwin32win32x8664361v3655cjar.htm) found the jar package. Overwrite the previous.

Re-run it, then.

In the process of finding the way to know, manifest ( show, show; prove; make manifest. To do the noun is: manifest, passenger list ) This file some things.

There is a Meta-inf folder in the jar package.

In this folder are:

Where MANIFEST.MF is the SHA1 (Secure Hash algorithm) of each class contained in this jar package is primarily applicable to digital signature standards (digitally Signature standard DSS)

SHA1 has the following characteristics: It is not possible to recover information from a message digest; two different messages do not produce the same message digest. The use of specific SHA1 Baidu go. I said so much ...)

A summary of errors encountered in running the SWT program

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.