Reputation: 10798
From a Java app, I'd like to programmatically:
I have found all details on SO on how to do 1. an 3., but not 2. ?
Upvotes: 1
Views: 726
Reputation: 5424
if you have ssh
access to remote server, you can get a remote shell in you java app using java secure channel lib and run appropriate command to install tomcat (may be : sudo apt-get install tomcat7
). example for ssh connection from java could be found here.
Upvotes: 3