
[ad_1]
Hi Friends,
I get again to cocos2d-x after nearly half a decade. And having difficulty making an attempt to compile a brand new JS challenge.
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 once I create and run new challenge with
cocos new -l js take a look at
cd take a look at
cocos run -p net
It works flawlessly.
But when I attempt to compile withcocos compile -p net -m launch
I get
Building 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 net -m launch
solely to get
Building mode: launch
No legitimate JDK discovered
Any trace on what am I doing mistaken? Highly respect any responses.
Thanks.
Got 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
[ad_2]