jdk1.6 environment to build NetBeans Chinese garbled

Source: Internet
Author: User
Chinese | Chinese garbled add support library join
Cd/usr/bin
Ln-sf/opt/jdk1.6.0/bin/javac
Ln-sf/opt/jdk1.6.0/jre/bin/java

Modify. BASHRC
Export java_home=/opt/jdk1.6.0
Export Java_bin=/opt/jdk1.6.0/bin
Export Path= $PATH; $JAVA _home/bin
Export classpath=.; $JAVA _home/lib/dt.jar; $JAVA _home/lib/tools.jar

One of them is a bit more human, sometimes running programs, or opening a terminal console appears
BASH:/opt/jdk1.6.0/lib/dt.jar:cannot execute binary file, etc.
That is because the Classpath large configuration inside the separator symbol error, not a semicolon is a colon, please correct it as soon as possible

IDE interface garbled, execute command
Ln-sf/usr/share/fonts/simsun.ttc/opt/jdk1.6.0/jre/lib/fonts/fallback
Fallback is the new folder
SIMSUN.TTC is any Chinese font file
Or
Ln-sf/usr/share/fonts/opt/jdk1.6.0/jre/lib/fonts/fallback
Fallback is a fonts connection.

In addition, in NB Tools-> option-> advance-> Editor-> Java Source-> encoding:utf-8
Enter-encoding UTF-8 in the Run and compile project in your project properties

NB Code Entry interface default is to use the system code page, changed to UTF-8, no matter what kind of platform to transplant to worry about.

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.