How to start and stop tomcat using java code?
For Linux Users using java, try this:
Runtime run = Runtime.getRuntime(); Process pr = run.exec("sh startup.sh", null, new File("filePath")); filePathexample = /home/example/apache-tomcat-8.0.47/bin/