Greetings!
I’m looking for a way to obtain a single .js file from all sources (custom code and framework included) to deploy on a website.
So far, I found the following answer to a topic on the forum:
cocos compile -p web -m release
Then you will find your published web project in publish/html5/, where game.min.js is the single js file for your game.
I get the following python stack and can’t find the cause of this issue:
d:\com\>cocos compile -p web -m release
Running command: compile
Building mode: release
Traceback (most recent call last):
File "D:\cocos2d-js-v3.2\cocos2d-js-v3.2\tools\cocos2d-console\bin\/cocos.py",
line 745, in <module>
run_plugin(command, argv, plugins)
File "D:\cocos2d-js-v3.2\cocos2d-js-v3.2\tools\cocos2d-console\bin\/cocos.py",
line 708, in run_plugin
plugin.run(argv, dependencies_objects)
File "D:\cocos2d-js-v3.2\cocos2d-js-v3.2\tools\cocos2d-console\plugins\project
_compile\project_compile.py", line 1401, in run
self.build_web()
File "D:\cocos2d-js-v3.2\cocos2d-js-v3.2\tools\cocos2d-console\plugins\project
_compile\project_compile.py", line 1116, in build_web
build_web.gen_buildxml(project_dir, project_json, publish_dir, buildOpt)
File "D:\cocos2d-js-v3.2\cocos2d-js-v3.2\tools\cocos2d-console\plugins\project
_compile\build_web\__init__.py", line 80, in gen_buildxml
jdk_version = check_jdk_version()
File "D:\cocos2d-js-v3.2\cocos2d-js-v3.2\tools\cocos2d-console\plugins\project
_compile\build_web\__init__.py", line 16, in check_jdk_version
child = subprocess.Popen(commands, stderr=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
What does this stack suggest doing?
Thanks!
J.