For a script I am making, I need a cross-platform way to check:
- If java is installed.
- What platform the script is running on (eg windows/amd64 or linux/x86)
in python. How could I do both of these.
Edit: The platform module is perfect for number 2, but a way to see just if java is installed not the version would be preferred.