You can start a java application by creating a shell script.
java -cp ../lib/myApplication.jar com.mypackage.myMainClass arg1 arg2
java -jar my_executable.jar
Application Server (J2EE, Tomcat,…)
Each unit contains:
- A functional component or components, such as an enterprise bean, web page, servlet, or applet
- An optional deployment descriptor that describes its content
Once a Java EE unit has been produced, it is ready to be deployed. Once deployed, the application is ready to run.
A launcher is a java class that take into account all the steps needed to start your application. This is an advanced technique.