Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.