How to run a java program on a server?

后端 未结 4 1630
说谎
说谎 2021-02-03 11:48

I have made a java application that stores data from a .csv file to a MySql database. Now my client want it to upload this application to his web space (web space he has taken f

4条回答
  •  深忆病人
    2021-02-03 12:01

    Your application is most likely a console application and not a web based one.

    Your client will need to SSH to the server and do something like:

    java com.foobar.FooBar
    

    or:

    java -jar FooBar.jar
    

提交回复
热议问题