Ant unable to find javac, JAVA_HOME won't set on Ubuntu

前端 未结 4 1757
滥情空心
滥情空心 2020-12-23 13:56

I have an Android Project called Hello on my Ubuntu 10.04 i386 Server (headless). It contains all things an Android project folder should have. I first build the project in

4条回答
  •  难免孤独
    2020-12-23 14:11

    Did you install the JDK?

    When you install Ubuntu only the JRE is installed as part of the default packages. Unfortunately Ubuntu's package management names the directory as if the JRE were installed along with the JDK. The directory is named java-6-openjdk even though the JDK is not be present.

    Do the following:

    sudo apt-get install openjdk-6-jdk
    

    It will install the JDK in that same directory.

提交回复
热议问题