Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4344220
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:51:57+00:00 2026-05-21T11:51:57+00:00

I have an Android Project called Hello on my Ubuntu 10.04 i386 Server (headless).

  • 0

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 bash while in the Project folder using this synax:

./android create project --target 5 --name HelloCompile --path ../../Projects/Hello --activity HelloActivity --package com.code.Hello

then I try to build the .apk with ant like so:

ant debug

I get this error:

BUILD FAILED
/home/myusername/www/sdk/tools/ant/main_rules.xml:384: 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 "/usr/lib/jvm/java-6-openjdk/jre"

which is very confusing to me because just before I run ant debug I run:

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

which I know works because printenv in bash shell returns:

JAVA_HOME=/usr/lib/jvm/java-6-openjdk

to compound this, adding this line to my /etc/environment file

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

does not fix the problem either – I get the same error. Nothing I do changes the fact Ubunut still thinks /usr/lib/jvm/java-6-openjdk/jre is the JAVA_HOME. What is going wrong? I’ve been at this for too many hours.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:51:57+00:00Added an answer on May 21, 2026 at 11:51 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android project created in Eclipse . I want to modify the
I have one android project.I have one class file of about 6000 lines when
I have downloaded an Android project. To avoid name conflicts I want to move
I have an Android (2.2) project in Eclipse (Helios). I want to add an
I have an Android 1.6 project. Can I directly convert it to 2.0?
I have two onclick method in android project clr=(Button)findViewById(R.id.Button01); clr.setOnClickListener(new OnClickListener() { public void
I have two threads in an Android application, one is the view thread, and
I'm doing some Android development, and I much prefer Visual Studio, but I'll have
Have you ever seen any of there error messages? -- SQL Server 2000 Could
here I uploaded my Android project made in Eclipse. The idea is that i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.