Reputation: 275
I have access to a server using SSH. I need to run a stand-alone Java application on it to access a MySQL server installed there. How do I go about in doing this?
Upvotes: 0
Views: 270
Reputation: 23208
Assuming you have the requirement to copy the JAR file on the *nix box and then run it(and not connect a Java process to it remotely)
java -jar your.jar
commandUpvotes: 1
Reputation: 6152
Assuming it is a linux machine, you have to connect to by using SSH
it and use scp
command to upload the files and deploy it...
than you have to run the JAR you deployed:
java -jar /path/to/file.jar
Or, provide more details please
Upvotes: 1