Scala Plugin 1.3.1 - Build error "Cannot run program '/usr/lib/jvm/java-8-oracle/bin/java' ..."

I'm running with the following setup:
- IntelliJ Idea 14.0.3 Ultimate Edition
- Scala Plugin 1.3.1
- JDK 1.8.0_31
- Typesafe Activator 1.2.12
- Ubuntu 14.10

I've created a project using the "play-java-spring" Activator template, imported it into IntelliJ and tried to build it (Ctrl + F9), but I get the following error:

Error:Internal error: (java.io.IOException) Cannot run program "/usr/lib/jvm/java-8-oracle/bin/java" (in directory "/home/user/Some%20Dir/play-java-spring"): error=2, No such file or directory
java.io.IOException: Cannot run program "/usr/lib/jvm/java-8-oracle/bin/java" (in directory "/home/user/Some%20Dir/play-java-spring"): error=2, No such file or directory
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
     at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder$$anonfun$build$1.apply(Play2TemplateJpsBuilder.scala:173)
     at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder$$anonfun$build$1.apply(Play2TemplateJpsBuilder.scala:136)
     at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
     at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
     at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder.build(Play2TemplateJpsBuilder.scala:136)
     at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1142)
     at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:827)
     at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:895)
     at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:790)
     at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:613)
     at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:353)
     at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:192)
     at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:137)
     at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:288)
     at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:123)
     at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:237)
     at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
     at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=2, No such file or directory
     at java.lang.UNIXProcess.forkAndExec(Native Method)
     at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
     at java.lang.ProcessImpl.start(ProcessImpl.java:134)
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
     ... 22 more


The "/usr/lib/jvm/java-8-oracle/bin/java" is a valid path on my system:

user@laptop:~$ file /usr/lib/jvm/java-8-oracle/bin/java
/usr/lib/jvm/java-8-oracle/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, BuildID[sha1]=bd74b7294ebbdd93e9ef3b729e5aab228a3f681b, not stripped


Running the project with SBT works fine. What could be causing this problem?

0
1 comment

+1 same problem here with 1.3.3

0

Please sign in to leave a comment.