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

  • Home
  • SEARCH
  • 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 8506087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:30:03+00:00 2026-06-11T02:30:03+00:00

I am using Apache Ant to build something on a Ubuntu virtual machine. When

  • 0

I am using Apache Ant to build something on a Ubuntu virtual machine.

When I do ant, and I got the following error:

Buidling failed:import does not support the "as" attribute

The version of java I have is 1.7, and for ant is also 1.7

Any clue? Millions of thanks!

  • 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-06-11T02:30:05+00:00Added an answer on June 11, 2026 at 2:30 am

    Make sure javac is version 1.7 with javac -version, that’s what is having a problem parsing the as keyword, not the java JVM application. The default in Ubuntu 12.10 is still 1.6, so you’d need to manually install a 1.7 JDK and then have it be the default by running sudo update-alternatives --config java. This page describes the different JVMs you can run in Ubuntu and how to select one.

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

Sidebar

Related Questions

I've got the following build environment : Ubuntu Java 1.6.0_24 Apache ant 1.8.2 Jenkins
I am using apache ant in the following way: I have projects P1, P2,
I am trying to compile java files from a java program using org.apache.tools.ant.taskdefs.Javac and
I am using ant and Apache Ivy, and i have multiple plans in my
I'm using the FTP Ant task with maven-antrun-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>ftp</id>
I have problems connecting to CVS using ant build.xml. I figured out the reason
I'm using org.apache.tools.ant.listener.Log4jListener to manage logging with my ant script. The ant script is
First time using Apache Ant (I'm excited and overwhelmed at the same time!) for
I have successfully implemented rest webservice using apache wink. I am using ant to
I am using Sonar new version with Ant build connectint to Hudson. I get

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.