I'm having a very hard time making a simple Play 2 project (Scala) to work with IntelliJ on Windows 8 64-bit. I made a project and always get the error:
Play 2 compiler
: (compile:compile) java.io.IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
I added javac to my path ("C:\Program Files\Java\jdk1.7.0_45\bin") and even JAVA_HOME (set to "C:\Program Files\Java\jdk1.7.0_45"). I works: I can call javac from the command prompt... but I still get the same annoying error when I try to Make the project with IntelliJ.
What I did, step by step:
- Install jdk-7u45-windows-x64.exe. Add to PATH.
- Install latest IntelliJ IDEA 12 (Ultimate)
- Open IntelliJ and install Scala and Play plugins.
- Create a new Play framework project, select JDK and a version of Play (2.1).
- Try to build the basic project without making any modification to the code and get the javac error.
I'm completely new to IntelliJ (I hope it gets more fun!) but looking at "Project Structure": everything looks fine, bth the Java SDK and Scala 2.10 compilers are selected...