Home Game Development Issue with compiling a venture – JavaScript

Issue with compiling a venture – JavaScript

0
Issue with compiling a venture – JavaScript

[ad_1]

Hi Friends,

I get again to cocos2d-x after virtually half a decade. And having situation attempting to compile a brand new JS venture.

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 venture with

cocos new -l js check
cd check
cocos run -p net

It works flawlessly.

But when I attempt to compile with
cocos 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 operating
cocos compile -p net -m launch
solely to get

Building mode: launch
No legitimate JDK discovered

Any trace on what am I doing improper? Highly recognize any responses.

Thanks.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here