我有一个在游戏框架中运行的应用程序。它在本地机器上运行良好。我已经在 CentOS Linx 系统中配置了应用程序。我已经解压播放包并将其放入 /var/lib/ 目录。我的应用程序将其放入目录 /var/www/ 目录中。在命令中运行播放依赖项时,它显示以下错误:
[root@xxxxxx004 InterShareServerHub]# /var/lib/play-1.2.5/play dependencies ~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.5, http://www.playframework.org
~ framework ID is sales-demo
~
Traceback (most recent call last):
File "/var/lib/play-1.2.5/play", line 153, in <module>
status = cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env, cmdloader=cmdloader)
File "/var/lib/play-1.2.5/framework/pym/play/commands/deps.py", line 55, in execute
return_code = subprocess.call(java_cmd, env=os.environ)
File "/usr/lib64/python2.6/subprocess.py", line 478, in call
p = Popen(*popenargs, **kwargs)
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
我不知道如何解决这个问题。我已经为java设置了路径。请任何人帮助我。