[2.1 RC1-java] Compilation Errors with fresh Java Project with Intellij IDEA 12 EAP

526 views
Skip to first unread message

Diwa Laksh

unread,
Nov 25, 2012, 3:35:42 AM11/25/12
to play-fr...@googlegroups.com
Hi,
  I created an fresh java project with "play new test" using Play 2.1 RC1. I am able to compile, run and test in the Play console. But when i generate an idea project, open it with Intellij IDEA 12 EAP  and try to build it, i get the compilation errors below.

/Users/diwa/code/test/target/scala-2.10/src_managed/main/controllers/routes.java
java: cannot find symbol
  symbol:   class ReverseApplication
  location: package controllers
java: cannot find symbol
  symbol:   class ReverseAssets
  location: package controllers
java: package controllers.javascript does not exist
java: package controllers.ref does not exist
........
/Users/diwa/code/test/app/controllers/Application.java
java: cannot find symbol
  symbol:   variable index
  location: class controllers.Application

I have not yet tried this in Intellij IDEA 11

Is anyone else using this combination? Are you facing these errors ?

Regards
Diwa

OlegYch

unread,
Nov 25, 2012, 1:42:34 PM11/25/12
to play-fr...@googlegroups.com
Hi, Diwa.
You need to use play/sbt compilation instead of simple javac from Intellij, because javac has no way to know about your routes and templates.
You can use idea-sbt-plugin to invoke sbt from Intellij.

Aleh

klmbear

unread,
Jun 30, 2017, 4:55:32 PM6/30/17
to Play Framework
changing build.sbt under libraryDepndencies add javaCore,
worked for me.
Reply all
Reply to author
Forward
0 new messages