久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 Android SDK 中設(shè)置 JAVA_HOME

Setting JAVA_HOME at Android SDK(在 Android SDK 中設(shè)置 JAVA_HOME)
本文介紹了在 Android SDK 中設(shè)置 JAVA_HOME的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我與 JAVA_HOME 配置有一些沖突當(dāng)我使用以下代碼時(shí) -

I have some conflicts with the JAVA_HOME configuration When I using the following code -

System.out.println(System.getenv("JAVA_HOME"));

我得到 - C:jdk1.6.0_23 這是正確的地方.但是,當(dāng)我在 Android build.xml 上運(yùn)行 Ant 命令時(shí),我收到以下錯(cuò)誤消息 -

I get - C:jdk1.6.0_23 which is the correct place. But, When I run Ant command on an Android build.xml, I got the following error message -

C:android-sdk-windows oolsantmain_rules.xml:361:找不到j(luò)avac編譯器;com.sun.tools.javac.Main 不上類(lèi)路徑.也許 JAVA_HOME 沒(méi)有指向JDK.目前已設(shè)置到C:jdk1.6.0_23jre"

C:android-sdk-windows oolsantmain_rules.xml:361: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:jdk1.6.0_23jre"

如何解決?

謝謝,

艾爾

推薦答案

要將 Windows 下的 JAVA_HOME 環(huán)境變量永久設(shè)置為您提到的 JDK 目錄,請(qǐng)執(zhí)行以下操作:

To permanently set your JAVA_HOME Environment Variable under Windows to the JDK directory you've mentioned do the following:

  1. 單擊開(kāi)始,右鍵單擊計(jì)算機(jī)并選擇屬性(您可以同時(shí)按住 windows 鍵并按下暫停/中斷鍵).
  2. 點(diǎn)擊左側(cè)的高級(jí)系統(tǒng)設(shè)置.
  3. 點(diǎn)擊底部的環(huán)境變量按鈕.
  4. 單擊系統(tǒng)變量"窗口下方的新建..."按鈕.
  5. 輸入以下內(nèi)容:

  1. Click Start, right click on Computer and select properties (you can also hold down the windows key and press the pause/break key).
  2. Click on Advanced system settings on the left.
  3. Click the Environment Variables button on the bottom.
  4. Click the New... button below the System variables window.
  5. Enter the following:

    Variable name: JAVA_HOME
    Variable value: C:jdk1.6.0_23 

  • 點(diǎn)擊Ok、Ok、Ok,關(guān)閉你在步驟1中打開(kāi)的系統(tǒng)控制面板
  • 關(guān)閉并重新打開(kāi)命令提示符.
  • 如果您使用的是 Eclipse,請(qǐng)?zhí)^(guò)上述步驟并執(zhí)行以下操作:

    If you are using Eclipse then skip the steps above and do the following:

    1. 單擊窗口"菜單并選擇首選項(xiàng)".
    2. 展開(kāi)左側(cè)的Ant入口,點(diǎn)擊Runtime
    3. 單擊右側(cè) Classpath 選項(xiàng)卡中的 Global Entries.
    4. 點(diǎn)擊添加外部 JAR...
    5. 導(dǎo)航到 C:jdk1.6.0_23lib 并選擇 tools.jar 然后點(diǎn)擊打開(kāi).
    6. 點(diǎn)擊確定關(guān)閉首選項(xiàng)窗口.

    但是,在您的情況下,您最好的選擇可能是簡(jiǎn)單地將 C:jdk1.6.0_23in 附加到您的 PATH 環(huán)境變量中,使用我上面的第一組說(shuō)明作為粗略指導(dǎo).

    In your situation however your best bet would probably be to simply append C:jdk1.6.0_23in to your PATH env var using my first set of instructions above as a rough guideline.

    這篇關(guān)于在 Android SDK 中設(shè)置 JAVA_HOME的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

    【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

    相關(guān)文檔推薦

    Why would you choose Android API over Google APIs in the SDK on Eclipse?(為什么在 Eclipse 的 SDK 中選擇 Android API 而不是 Google API?)
    Couchbase Bucket authentication error(Couchbase 存儲(chǔ)桶身份驗(yàn)證錯(cuò)誤)
    admob 6.2.1 nullpointer exception(admob 6.2.1 空指針異常)
    How to setup SDK in IntelliJ IDEA?(如何在 IntelliJ IDEA 中設(shè)置 SDK?)
    My phone cannot be detected in eclipse to test run(eclipse 無(wú)法檢測(cè)到我的手機(jī)進(jìn)行試運(yùn)行)
    platform-toolsaapt.exe directory missing in android SDK(android SDK 中缺少 platform-toolsaapt.exe 目錄)
    主站蜘蛛池模板: 日批免费在线观看 | 麻豆av免费观看 | 一区二区久久精品 | 国产精品揄拍一区二区久久国内亚洲精 | www.99热.com| 精品国产乱码一区二区三区 | 综合激情久久 | 国产在线视频一区二区 | 亚洲综合激情 | 亚洲精品久久视频 | 97人人草| 国产美女一区二区三区 | 中文字幕免费观看 | 国产成人啪免费观看软件 | 中文字幕亚洲视频 | 国产日韩精品在线 | 日韩国产黄色片 | 天天搞夜夜操 | 日日噜噜夜夜爽爽狠狠 | 一区二区激情 | 看一级黄色毛片 | 欧美jizzhd精品欧美巨大免费 | 91精品久久久久久综合五月天 | 色桃网 | av免费看片 | 久久久久中文字幕 | av毛片 | 91在线一区二区 | 国产精品一区二区在线观看 | 亚洲 成人 在线 | 日韩视频中文字幕 | 91精品国产91久久久久久 | 91精品国产综合久久久久 | 国产欧美在线观看 | 欧美成人a∨高清免费观看 老司机午夜性大片 | 久久艹免费视频 | 国产精品免费一区二区三区四区 | 久久国产欧美一区二区三区精品 | 亚洲综合在线播放 | 欧美一区二区在线观看视频 | 国产精品一区二区三区在线 |