I've just installed play-2.0 and keep getting the following error when I try run any of the sample apps:
IOException: Cannot run program "javac": java.io.IOException: error=2, No such file or directory
I've tried on ubuntu 11.10 installing play via the typesafe stack and on crunchbang 10 by downloading the zip from the website. Both times I get the same error?
What am I missing?
First of all, the primary requirement for Play 2.0 is JDK 6 or later, according to the framework's documentation.
Then, you also need to ensure that javac
can be found within the current path. I got the same error as you before I added the directory containing javac
to path.
I was facing the same issue. I was added JAVA PATH and JAVA_HOME AND PLAY to path. javac and java commands are working fine from terminal. But still problem was not solved.
It is solved after creating symbolic soft links java and javac in /usr/bin.
I run into the same problem. The solution was to install the 32-bit version of JDK
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With