How do you start to play? If you have not just added start.sh/start.bat, which will set JAVA_HOME to current_folder / jdk?
You can also pack the Play application as a WAR file and use it with a portable tomcat or other web server.
Description of the play command:
~ the script first tries to find the java command using $ JAVA_HOME (from $ JAVA_HOME / bin). ~ If the $ JAVA_HOME variable is not defined, the default java command from PATH is available.
So, you can try adding Java / bin to your path or try adding “java” to your working directory, where you start playing.
As a last option, you can change play\framework\pym\play\application.py and add your path directly to it, change this part:
def java_path(self): if not os.environ.has_key('JAVA_HOME'): return "java" else: return os.path.normpath("%s/bin/java" % os.environ['JAVA_HOME'])
source share