2011-07-20 87 views
1

我無法運行遊戲:Play 1.2.2需要什麼版本的jdk?

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 
... 

爲什麼不這項工作?

回答

6

你JAVA_HOME應設置爲:

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

不是它的bin子目錄。

+0

修復它。我很驚訝我能夠讓所有的Java應用程序工作。 – TangibleDream