-1

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?

3 Answers3

0

You can deploy a war file using a application server, some thing like Tomcat, JBOSS, etc.,

Here is How to deploy a war file in Tomcat 7

Community
  • 1
  • 1
Arunkumar S
  • 112
  • 2
  • 14
0

Apparently the fastest way is to create a dokku instance, add a Procfile, and using git remotes push everything there.. nice

-1
  1. first of all you have create executable jar like this C\mywork> jar cvfm MyJarName.jar manifest.txt *.class

  2. manifest text file will have entry of main class like Main-Class: Craps

  3. last step to execute this file either from command prompt or server configuration or directly clicking on jar file like. java -jar Craps.jar

ajadon
  • 11
  • 5