无论如何,Play 1.2.2需要什么版本的jdk?

时间:2011-07-20 02:18:26

标签: java playframework

我无法运行Play:

C:\Dev\play-1.2.2>play run \dev\myFirstApp
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.2.2, http://www.playframework.org
~
~ Ctrl+C to stop
~
Could not execute the java executable, please make sure the JAVA_HOME environmen
t variable is set properly (the java executable should reside at JAVA_HOME/bin/j
ava).

C:\Dev\play-1.2.2>

但是我将环境变量设置如下:

C:\Dev\play-1.2.2>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Owner\AppData\Roaming
asl.log=Destination=file
...
\JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_17\bin
LOCALAPPDATA=C:\Users\Owner\AppData\Local
...

为什么这不起作用?

1 个答案:

答案 0 :(得分:6)

您的JAVA_HOME应设置为:

JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_17

不是它的bin子目录。