I had the very same problem and was a long time not able to install junit under linux/ubuntu.
Make sure that java, javac and all that stuff do have the execute flag set. I had to do this after installation of jmonkey manualy and it solved the problem, I’m pretty sure you have the same problem.