I want to run a Python tool installed in a python virtual environment from Java source code. What are the possible Java libraries that I can use for this purpose?
I have already tried below code:
Runtime.getRuntime().exec("/Users/xxx/Documents/venv/bin/python3.7 yyy);
But this code doesn't work. It is to run a Python script (eg., yyy= script.py) from the virtual environment (venv). Therefore, it gives me an error saying there is no file called yyy. But my requirement is to run a Python tool installed in the virtual environment venv.