Liunx-https-java.lang.NoClassDefFoundError: javax/crypto/Sun

Source: Internet
Author: User

Error message:

Java. lang. NoClassDefFoundError: javax/crypto/* <init> (DashoA13 ** 86 <init> (Sercuri. java: 2235)

Scenario Description:

This token is paid using paypal. You need to send an https request within the program to confirm whether the payment information is correct.

In windows, the test run is normal. If you deploy it in linux and run it at the place where the request is sent, it stops. As debugging fails and an Error is thrown here, no Exception is caught.

I thought it was a linux port restriction problem.

The final guess is that the Exception thrown here may not be an Exception. Add a statement to capture the Throwable and print the above error message.

 

Solution:

According to the error message, it is determined that it is a jar package version problem. The JDK installed in the original linux is 64-bit 1.6.0.x, and a latest version 1.7 is re-installed. The problem is solved.

Some minor problems encountered during this process. After JDK is reinstalled in linux, JAVA_HOME and PATH are reset, but they do not take effect immediately.

Therefore, you need to confirm that the environment variable has changed and has taken effect. The corresponding linux Command can be searched at will to solve the problem and restart the linux system directly to solve the problem.

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.