Reputation: 3921
I have a eclipse on windows 7 system and I am trying some code on it.
But as my database is on server that is not my local systems so how can I connect eclipse to remote server so that I can write code on local and run on server.
Is it possible then please let me know and that server to which I want to connect that is Linux server.
Upvotes: 0
Views: 2699
Reputation: 11543
Do you have to run your program remotely just because your database resides on the other server? Most databases allow connecting over TCP/IP.
Otherwise my suggestion is to add you public ssh key on the server, and then create a script which copies your class files and then executes your java program on your server, such as:
scp -r classfolder remoteuser@remotesystem:folderpath
ssh remoteuser@remotesystem java -cp folderpath the.created.Program
The public key removes the need for you to enter your password for each command.
Upvotes: 1