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

在 Android SDK 中設置 JAVA_HOME

Setting JAVA_HOME at Android SDK(在 Android SDK 中設置 JAVA_HOME)
本文介紹了在 Android SDK 中設置 JAVA_HOME的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我與 JAVA_HOME 配置有一些沖突當我使用以下代碼時 -

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 這是正確的地方.但是,當我在 Android build.xml 上運行 Ant 命令時,我收到以下錯誤消息 -

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:找不到javac編譯器;com.sun.tools.javac.Main 不上類路徑.也許 JAVA_HOME 沒有指向JDK.目前已設置到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 環境變量永久設置為您提到的 JDK 目錄,請執行以下操作:

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

  1. 單擊開始,右鍵單擊計算機并選擇屬性(您可以同時按住 windows 鍵并按下暫停/中斷鍵).
  2. 點擊左側的高級系統設置.
  3. 點擊底部的環境變量按鈕.
  4. 單擊系統變量"窗口下方的新建..."按鈕.
  5. 輸入以下內容:

  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 

  • 點擊Ok、Ok、Ok,關閉你在步驟1中打開的系統控制面板
  • 關閉并重新打開命令提示符.
  • 如果您使用的是 Eclipse,請跳過上述步驟并執行以下操作:

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

    1. 單擊窗口"菜單并選擇首選項".
    2. 展開左側的Ant入口,點擊Runtime
    3. 單擊右側 Classpath 選項卡中的 Global Entries.
    4. 點擊添加外部 JAR...
    5. 導航到 C:jdk1.6.0_23lib 并選擇 tools.jar 然后點擊打開.
    6. 點擊確定關閉首選項窗口.

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

    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.

    這篇關于在 Android SDK 中設置 JAVA_HOME的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

    相關文檔推薦

    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 存儲桶身份驗證錯誤)
    admob 6.2.1 nullpointer exception(admob 6.2.1 空指針異常)
    How to setup SDK in IntelliJ IDEA?(如何在 IntelliJ IDEA 中設置 SDK?)
    My phone cannot be detected in eclipse to test run(eclipse 無法檢測到我的手機進行試運行)
    platform-toolsaapt.exe directory missing in android SDK(android SDK 中缺少 platform-toolsaapt.exe 目錄)
    主站蜘蛛池模板: 久草在线青青草 | 精品中文字幕一区二区三区 | 国产福利观看 | 第四色狠狠 | 黄色国产视频 | 成人免费区一区二区三区 | 91青娱乐在线 | 亚洲精品欧美 | 天堂色区 | 一区二区高清在线观看 | 羞羞的视频免费看 | 精品日韩一区 | 国产剧情一区 | 在线不卡av | 日韩一区二区三区av | 久久久青草婷婷精品综合日韩 | 91极品欧美视频 | 一区二区三区韩国 | 亚洲一级毛片 | 欧美精品一区在线 | 成人自拍av | 影音先锋中文字幕在线观看 | 国产一级一级 | 1000部精品久久久久久久久 | 做a的各种视频 | 在线免费观看视频黄 | 国产一级在线 | 亚洲欧美日韩中文字幕一区二区三区 | 999精品视频 | 日本欧美在线视频 | 久热精品在线播放 | 国产精品99 | 国产日韩欧美综合 | 一级欧美日韩 | 亚洲精品女人久久久 | 成人免费视频网站在线看 | 99热视| www.欧美| 在线视频第一页 | aaa大片免费观看 | 91色在线|