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.