I wrote a small c++ program for a class but when I go to compile and then run it I get permission denied.
What I typed:

g++ lab1.cpp -o lab1

I check and I am listed as owner of the file and it is set to be executable.

Also I can run java programs but I cannot run "javac" to create the .class files. What is it that I need to do?

Thanks for any help.