Martinffx
Martinffx

Reputation: 2476

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?

Upvotes: 9

Views: 7375

Answers (3)

user1969807
user1969807

Reputation: 91

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.

Upvotes: 3

NFpeter
NFpeter

Reputation: 613

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

Upvotes: 2

Tommi
Tommi

Reputation: 8608

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.

Upvotes: 5

Related Questions