xuperchain / xuperchain

A highly flexible blockchain architecture with great transaction performance.

Home Page:https://xuper.baidu.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

部署native合约报错

ajiewhy opened this issue · comments

Brief of the issue
Describe here
部署java native合约报错了。
下载java版本,本地编译打包上传服务器执行如下命令

[root@xxxxx output]# ./bin/xchain-cli native deploy --account XC1111111111111111@xuper --fee 15587517 --runtime java --cname javacounter counter-0.1.0-jar-with-dependencies.jar
PreExe contract response : rpc error: code = Unknown desc = Err:500-50501-contract invoke failed+exec: "java": executable file not found in $PATH, logid:1657027253_3471308550008644

Your environment
XuperChain 5.2
and OS/Go/gcc version etc.
linux. oscent

请问怎么解决,file not found

服务器装java环境了吗?