Let's say i have a spring application and it all builds into a nice simple .jar file.
How can i, and with what tools, deploy this .jar file on a production server?
Let's say i have a spring application and it all builds into a nice simple .jar file.
How can i, and with what tools, deploy this .jar file on a production server?
You can deploy a war file using a application server, some thing like Tomcat, JBOSS, etc.,
Apparently the fastest way is to create a dokku instance, add a Procfile, and using git remotes push everything there.. nice
first of all you have create executable jar like this C\mywork> jar cvfm MyJarName.jar manifest.txt *.class
manifest text file will have entry of main class like Main-Class: Craps
last step to execute this file either from command prompt or server configuration or directly clicking on jar file like. java -jar Craps.jar