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 recently installed Geany on my Ubuntu machine and I'm looking to compile and run my .java and .class files in specific folders, but I've hit a brick wall. Coming from Windows I set the Compile build command to javac -d /Home/leon/Documents/classes "%f" and Execute to java -cp /Home/leon/Documents/classes "%e" but I get a "directory not found" error when I try to build a file even though the directory exists. What am I missing?

share|improve this question
... /Home/leon/Documents/classes/*? usually it is /home, but you may be able to put ~/Documents/classes/* instead. – Wilf Dec 31 '13 at 10:27
That did the trick! Thank you very much :) – Leon Dec 31 '13 at 10:37
up vote 0 down vote accepted

Try this: /Home/leon/Documents/classes/*

Usually it is /home, not /home, you could also copy the file, and paste it into a text editor to get the path of a file.

You may be able to put ~/Documents/classes/* instead, as ~ represents /home/USERNAME.

Hope this helps smiley

share|improve this answer

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.