Vulnerability Scanner using Java

Hi I have completed the Python course and I’m planning to develop a vulnerability scanner using the Java programming language but I cannot find any module similar to the subprocess module that is available in Python does this mean I have to create everything from scratch or is there any other module similar to subprocess in Java that you know which I can make use of to perform the exact task?

For this question you will have to ask around among Java people, for hacking and pentesting Phyton is more then enough. Not many people come into cyber security from Java programming.