Hi. I have a JAR file and want it to be executed on another machine in the network.

I want to write an application that takes an IP address of a machine in the network and executes the JAR file on that machine. How can i do this??

you can't. We're NOT here to tell you how to write spyware and trojans.

I have the permissions. I have valid username and password for the machine where i want to execute the jar file. The application that i m writing, needs such a thing. I am not making any spyware or trojan!

that's what they all say...
Anyway, what you want is NOT going to work, you're NOT going to start a program on another computer without that computer knowing it.
In fact you're NOT going to start a program remotely at all without shell access to it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.