I had the same problem.
the trick is your system %PATH%
in my case (and probably yours), I had both JRE and JDK in the path,
and the JRE was BEFORE the JDK.
I believe that Play was run by java.exe under JRE, and was looking for
javac.exe inside JRE too, ignoring the system %PATH%.
the solution was putting the java JDK BEFORE the JRE in the %PATH%.
this way, Play is run by java.exe under JDK, and then it looks for
javac.exe in the same path.
regards,
----
On 3 abr, 08:52, Krystian <
krystian.rako...@googlemail.com> wrote:
> Hi, I set JAVA_HOME and can run javac manually. But still can't compile in
> play. I'm using Windows 7 64-bit with java 64-bit 1.7.0_03.
> Any idea?
>
> regards,
> Krystian
>
> W dniu wtorek, 13 marca 2012, 22:52:43 UTC+1 użytkownik Marcos Silva
> Pereira napisał:
>
>
>
>
>
>
>
>
>
> > Can you run javac itself in prompt?
>
> > If not, you should set JAVA_HOME (
> >
http://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Var...)
> > and add JAVA_HOME/bin to your PATH.
>
> > Kind Regards,
> > --
> >
http://about.me/marcospereira
>
> > On Tue, Mar 13, 2012 at 3:35 PM, Marcelo Magalhaes <
> >
marcelotmagalh...@gmail.com> wrote:
>
> >> Hello everyone, I´m just starting with Play. I barelly ended the 1.2.4
> >> tutorials and the 2.0 was released. So, I´m trying to run the "todolist"
> >> project directly from the command line, but there is the JAVAC problem
> >> happening every time I try to run the project.. I just installed the jdk
> >> 6u31 for windows but no changes were made...
>
> >> Please, can anyone help me figure out what´s the problem? And
> >> congratulations for the creators, Play is a masterpiece!
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "play-framework" group.
> >> To view this discussion on the web visit
> >>
https://groups.google.com/d/msg/play-framework/-/BkB30NObWqIJ.
> >> To post to this group, send email to
play-fr...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >>
play-framewor...@googlegroups.com.