Java Code Calling Python Enter your Python code you want to call in test.py and run that try{} catch{} block to execute your python file through java
--------Note---------
Command Line can Differ based on your system
python3 test.py
or
python test.py