Play can't find the JAVA_HOME path on Windows 7-64bit
2,093 views
Skip to first unread message
Marcos Arroyo
unread,
Jan 25, 2011, 8:18:42 PM1/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
I just installed jre6, jdk1.6, and I downloaded play. I set play to
the Path variable and I can run it through the command prompt from any
directoy. Except that it can't find java. I get the following error
"Could not execute the java executable, please make sure the JAVA_HOME
environment variable is set properly (the java executable should
reside at JAVA_HOME/bin/java)."
So I made the JAVA_HOME environment variable and I added the directory
to the Path variable and it still can't find it
For the Path I added this to the end
;C:\Program Files\Java\jre6;C:\Program Files\Java\jdk1.6.0_23
For the JAVA_HOME variable I put
C:\Program Files\Java\jdk1.6.0_23
but none of them seem to work. I even added all these variations to
the Path variable and it still doesn't work. What am I doing wrong?
Please help! I need to use Play! for a class
Olivier Refalo
unread,
Jan 26, 2011, 11:18:50 AM1/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
Did you get JDK 32 or 64 bit ?
Olivier Refalo
unread,
Jan 26, 2011, 11:20:27 AM1/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
JAVA_HOME typically points to the jdk install folder , so it would be C:\Program Files\Java\jdk1.6.0_23
SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_23
you can try echo %JAVA_HOME% to validate it
Webiyo
unread,
Jan 26, 2011, 2:25:36 PM1/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
I too had encountered the same problem :)
Add JAVA_HOME as a system wide environment variable as suggested and put java home path as value. Make sure that you enter custom path for jdk/jre while performing the installation.( Defalu path in the installer is a bit longer )
For example c:\jdk6 It helps when you browse through the directories on commnd prompt :)