Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成JAVA服务时,报错如下图 #99

Open
Kimmyzhao opened this issue Mar 26, 2024 · 2 comments
Open

集成JAVA服务时,报错如下图 #99

Kimmyzhao opened this issue Mar 26, 2024 · 2 comments

Comments

@Kimmyzhao
Copy link

图片

2024-03-26 14:31:18,986 ERROR 16417 [ee-core] [corss/process] received a error from child-process, error: Error: spawn /Users/Kimmyzhao/Desktop/work/mes-desktop-manager/build/extraResources/jre1.8.0_201/Contents/Home/bin/java ENOENT, pid:undefined
2024-03-26 14:31:18,987 ERROR 16417 nodejs.unhandledRejectionError: [ee-core] [cross] The process named [javaapp] does not exit
    at Object.getProcByName (/Users/Kimmyzhao/Desktop/work/mes-desktop-manager/node_modules/ee-core/cross/index.js:146:13)
    at Object.getUrl (/Users/Kimmyzhao/Desktop/work/mes-desktop-manager/node_modules/ee-core/cross/index.js:136:25)
    at CrossService.createJavaServer (/Users/Kimmyzhao/Desktop/work/mes-desktop-manager/electron/service/cross.js:70:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /Users/Kimmyzhao/Desktop/work/mes-desktop-manager/electron/preload/index.js:18:3
name: "unhandledRejectionError"
pid: 16417
hostname: KimmyzhaodeMacBook-Pro-2.local

@wallace5303
Copy link
Collaborator

先把 demo 的跑通,理解理解
这种报错一般是调用时的代码有问题

@moka-erb
Copy link

moka-erb commented May 6, 2024

DEMO MAC路径写的有问题
DEMO中MAC的地址有问题加上.JRE就可以了
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants