Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently trying to install leJOS in my Ubuntu laptop (12.04) and I've followed the instructions from here but I'm unable to build it. (

When I type "ant" it shows the following error:

Buildfile: /opt/leJOS_NXJ/build/build.xml




/opt/leJOS_NXJ/build/build.xml:87: The following error occurred while executing this line:
/opt/leJOS_NXJ/build/libnxt/build.xml:39: Can't create history file

Total time: 0 seconds

Can somebody help me fix this error?

Oh and one more thing - how does one set environment paths/variables? (Which is the next step)

share|improve this question
up vote 0 down vote accepted

Try running sudo ant instead.

You're compiling in the /opt/ folder, which requires root privileges to create & delete files in.

The sudo command will run ant with the needed rights.

share|improve this answer
Thanks alot! That did the trick :) – user2554340 Dec 12 '13 at 16:33
If the answer's correct, don't forget to mark it as accepted! – jackweirdy Dec 12 '13 at 16:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.