How can I check inside a java program if python is installed on windows? Python does not add its path to the system Path, and one should not make assumptions about the likely installation path (i.e., it can be installed anywhere).
Use the Java Runtime to execute the following python --version command.
If this works, you have Python and the standard output is the version number.
If this does not work, you do not have Python.
Python Windows. , , , , .
, , ?
software\python\pythoncore
() python, MSI-, MsiEnumProducts Function, , python.
exec ( String) . , Python
Source: https://habr.com/ru/post/1715508/More articles:Mutliplatform application: (Automated) Testing for Mac OSX howto? - cloudBluetooth UUID Detection - uuidError using MSBuild tokens in PropertyGroup - msbuildIs there any reason NOT to use git -masquerading-as-cvs as an upgrade to cvs? - javaControl Panel Item Icons (Windows XP) - windowsCan I impersonate app.config for a console application? - c #File Comparison Tool with Combined File Viewer - diffПростая функция JavaScript с немедленным вызовом не работает... почему? - javascriptWhat is the best way or tool to show how long a command line operation takes? - command-lineCan I turn off Hudson's automatic scheduled builds all at once? - javaAll Articles