Hello Buddies,
I get again to cocos2d-x after nearly half a decade. And having concern attempting to compile a brand new JS mission.
I’ve a contemporary 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 mission with
cocos new -l js check
cd check
cocos run -p net
It really works flawlessly.
However when I attempt to compile withcocos compile -p net -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 net -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.