Job Recruitment Website - Recruitment portal - How to call the node environment to run js code when writing java?

How to call the node environment to run js code when writing java?

I don't know what your specific needs are. If you use java for web development, the project itself can run JS, without calling the nodeJs environment. If you want the architecture of java+nodeJs, it should be the way to provide interfaces and send requests on the other side, and you don't have to call nodeJs through java.

So you still need to know what your specific needs are.