Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play 2.0 IOException

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?

like image 876
Martinffx Avatar asked Mar 15 '12 18:03

Martinffx


3 Answers

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.

like image 116
Tommi Avatar answered Nov 04 '22 23:11

Tommi


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.

like image 34
user1969807 Avatar answered Nov 04 '22 21:11

user1969807


I run into the same problem. The solution was to install the 32-bit version of JDK

like image 2
NFpeter Avatar answered Nov 04 '22 23:11

NFpeter