Troubleshoot installing JDK in CentOS virtual machine with Chinese garbled problem

Source: Internet
Author: User

(1) I am installing the JDK for this virtual machine through the use of the WINSCP tool to achieve, first double-click Winscp.exe into the WinSCP login interface, in the environment, the file name UTF-8 encoding is set to open, as shown in:

(2) Then click the Session this option, enter the hostname, username and password, click Save, log in, as shown in:

(3) Next into the CentOS virtual machine, into the/etc/sysconfig/i18n file, the contents of the content is modified to: lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "Zh_CN.GB18030:zh_CN:zh"
Sysfont= "Lat0-sun16"
Sysfontacm= "8859-15"

Click Save and exit as shown:

(4) Finally, into the [email protected] Command box, enter the Javac, the previous garbled has changed to Chinese characters, as shown (note: This virtual machine I have already installed the JDK, just input javac Verify that the JDK is installed successfully garbled, Readers to see how to install the JDK in a virtual machine please Baidu)

Troubleshoot installing JDK in CentOS virtual machine with Chinese garbled problem

Related Article

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.