Sample bash script to start and stop Java application on Linux
Do you have trouble running your Java/Springboot applications on Linux? How do you start and stop your Java applications on a Linux server? Executing a standalone Java application or Springboot executable jar in your local machine is simple and easy. You can use any of the Java IDE like Eclipse, Idea IntelliJ, NetBeans, etc. during development. If you have developed a Java application that you need to execute on a Linux machine then you need a shell script to start your Java executable jar file. Without a proper shell script, it is a big pain to provide all required arguments in a command prompt every time to execute your Java application. Here is a sample script that I prepared during my college days to execute my college project which I developed in Java. I have used this script for various other projects and I still found it helpful to execute my Springboot applications. It is one of the traditional approaches not suitable for the applicat...