(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