Hello Associates,
I get again to cocos2d-x after virtually half a decade. And having situation making an attempt to compile a brand new JS venture.
I’ve a recent Ubuntu 18.04 field setup with Java 1.8, Cmake, and all different dependencies as talked about @ https://docs.cocos.com/cocos2d-x/handbook/en/set up/Linux.html
Now after I create and run new venture with
cocos new -l js take a look at
cd take a look at
cocos run -p internet
It really works flawlessly.
However when I attempt to compile withcocos compile -p internet -m launch
I get
Constructing mode: launch
No legitimate JDK discovered
I attempted including
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH=$JAVA_HOME:$PATH
after which
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
export PATH=$JAVA_HOME:$PATH
after which
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin"
export PATH=$JAVA_HOME:$PATH
With every of above settings, sourced .bashrc and tried operatingcocos compile -p internet -m launch
solely to get
Constructing mode: launch
No legitimate JDK discovered
Any trace on what am I doing incorrect? Extremely recognize any responses.
Thanks.
Acquired this working with Java 1.7 and Apache ant 1.9
As outlined in /instruments/cocos2d-console/plugins/plugin_compile/build_web/init.py, cocos2dx 3.17.2, works solely with Java 1.6 or 1.7