Solution-in Mac systems, Eclipse cannot import projects with Chinese paths

Source: Internet
Author: User

1, modify eclipse.app/contents/info.plist, find

<key>CFBundleExecutable<key>
Add the following code above it


<?xml version= "1.0" encoding= "UTF-8"?> <!  DOCTYPE plist Public "-//apple//dtd plist 1.0//en" "Http://www.apple.com/DTDs/PropertyList-1.0.dtd" >  < Plist version= "1.0" >      <dict>          <key>LSEnvironment</key>          <dict>              <key >JAVA_TOOL_OPTIONS</key>              <string>-Dfile.encoding=UTF-8</string>              <key>lang </key>              <STRING>ZH_CN. utf-8</string>          </dict>          <key>CFBundleExecutable<key>


2, modify eclipse.app/contents/macos/eclipse.ini, add-dfile.encoding=utf-8 in the last line

3. Close eclipse, restart, and exit

4. Open the command terminal and execute the following command

/system/library/frameworks/coreservices.framework/frameworks/launchservices.framework/support/lsregister-v-F/ Applications/eclipse/eclipse.app


5 Restarting Eclipse

Solution-in Mac systems, Eclipse cannot import projects with Chinese paths

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.