How to access the AAS application cocould not initialize class sun. AWT. x11graphicsenvironment in Linux

Source: Internet
Author: User

The same application is developed on the Windows platform. The test phase is okay. Then it is deployed on the Linux platform and accessed using the IE browser. The verification code (the verification code is displayed as an image) is always invisible. Then, use the Firefox browser and directly throw it in the browser:

Java. Lang. noclassdeffounderror: cocould not initialize class sun. AWT. x11graphicsenvironmentAt java. Lang. Class. forname0 (native method) at java. Lang. Class. forname (Class. Java: 169) At java. AWT. graphicsenvironment. getlocalgraphicsenvironment (Graphicsenvironment. Java: 68) At java. AWT. image. bufferedimage. creategraphics (Bufferedimage. Java: 1135) At java. AWT. image. bufferedimage. getgraphics (Bufferedimage. Java: 1125)

In addition, a strange phenomenon is that when I access it under ie, the xmanager on my local machine is always started.

Search for this problem. In this case, the user who starts AAS cannot access the xserver, including the user who does not start or has no permission to access the xserver.

Added "-djava. AWT. headless = true ", restart AAS, use IE access, normal, and no longer use the xmanager of the Local Machine, access in FF, OK, and normal!

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.