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 spawn error ENOENT inside Docker #28

Open
ainuraliyah opened this issue Jul 18, 2023 · 1 comment
Open

Java spawn error ENOENT inside Docker #28

ainuraliyah opened this issue Jul 18, 2023 · 1 comment

Comments

@ainuraliyah
Copy link

ainuraliyah commented Jul 18, 2023

Hi, I would like to ask about using java-caller. I deployed my app into a Docker container (OS Linux), and the jdk/jre required is successfully installed inside the container. However, it shows a spawn error as mentioned below:

Java jre or jdk 11 is required
Installing Java jre 11 in /home/support/.java-caller...
Installed Java jre 11 in /home/support/.java-caller/jre...
Java spawn error: Error: spawn java ENOENT

My node.js code implementing javaCaller is depicted here:

const java = new JavaCaller({
              jar: 'myRunnableJar.jar',
              minimumJavaVersion: 11,
              maximumJavaVersion: 11
});

const {stdout, stderr} = await java.run([`--myArgs myValue`]);

I wonder if someone experienced the same issue, any favor and solutions will be appreciated, thank you!

@nvuillam
Copy link
Owner

@ainuraliyah i just release https://github.com/nvuillam/node-java-caller/releases/tag/v4.1.0 , do you still have the issue ?

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

2 participants